Skip to content

Commit 3f5a53e

Browse files
[Android] Fix custom toolbar item press ID (#323)
* Passing back item key correctly * changelog * Updating package version --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f140c92 commit 3f5a53e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.0.0-31 - May 27, 2024
2+
- Fix bug in `startAnnotationToolbarItemPressedListener`
3+
14
# 1.0.0-30 - May 1, 2024
25
- Update Android to v10.9.0
36

android/src/main/java/com/pdftron/pdftronflutter/helpers/PluginUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4372,7 +4372,7 @@ public static void handleAnnotationCustomToolbarItemPressed(ViewerComponent comp
43724372
String itemKey = mToolIdMap.get(itemId);
43734373
if (itemKey != null && annotationCustomToolbarItemPressedEventSink != null) {
43744374
// this is a custom button
4375-
annotationCustomToolbarItemPressedEventSink.success(itemId);
4375+
annotationCustomToolbarItemPressedEventSink.success(itemKey);
43764376
}
43774377
}
43784378

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pdftron_flutter
22
description: A convenience wrapper to build Flutter apps that use the PDFTron mobile SDK for smooth, flexible, and stand-alone document viewing.
3-
version: 1.0.1-30
3+
version: 1.0.1-31
44
homepage: https://www.pdftron.com
55
repository: https://github.com/PDFTron/pdftron-flutter
66
issue_tracker: https://github.com/PDFTron/pdftron-flutter/issues

0 commit comments

Comments
 (0)