-
Notifications
You must be signed in to change notification settings - Fork 74
[WIP] Add additional callbacks to Android #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| } | ||
|
|
||
| private static List<Object> toList(JSONArray array) throws JSONException { | ||
| List<Object> list = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be already initialized at the correct size.
| * Converts the given {@link JSONObject} to a {@link Map}. | ||
| */ | ||
| public static Map<String, Object> jsonObjectToMap(JSONObject object) throws JSONException { | ||
| Map<String, Object> map = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be already initialized at the correct size.
| this.fragmentManager = fragmentManager; | ||
| this.eventDispatcher = eventDispatcher; | ||
|
|
||
| pdfViewDocumentListener = new PdfViewDocumentListener(this, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the extra line break?
# Conflicts: # index.js
Android implementation for #90, #81, #88, #85
onDocumentSavedcallback.onAnnotationTappedcallback anddisableDefaultActionForTappedAnnotations.onAnnotationsChangedcallback.addedandchangedevent provide the full instant json,removedevent provides justnameandcreatorNamesince we can't get the instant json for detached annotations.saveCurrentDocumentwhich instantly saves the currently displayed document.