We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ebdfd0 commit 68fc48dCopy full SHA for 68fc48d
app/src/main/assets/viewer.js
@@ -210,6 +210,7 @@ function loadDocument() {
210
}
211
212
loadingTask.promise.then(function (newDoc) {
213
+ channel.onLoaded();
214
pdfDoc = newDoc;
215
channel.setNumPages(pdfDoc.numPages);
216
pdfDoc.getMetadata().then(function (data) {
app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java
@@ -202,6 +202,10 @@ public void invalidPassword() {
202
showPasswordPrompt();
203
204
205
+ @JavascriptInterface
206
+ public void onLoaded() {
207
+ }
208
+
209
@JavascriptInterface
public String getPassword() {
return mEncryptedDocumentPassword != null ? mEncryptedDocumentPassword : "";
0 commit comments