Skip to content

Commit

Permalink
[Android] Fix custom toolbar item press ID (#323)
Browse files Browse the repository at this point in the history
* Passing back item key correctly

* changelog

* Updating package version

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sgong-pdftron and github-actions[bot] authored May 27, 2024
1 parent f140c92 commit 3f5a53e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.0-31 - May 27, 2024
- Fix bug in `startAnnotationToolbarItemPressedListener`

# 1.0.0-30 - May 1, 2024
- Update Android to v10.9.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4372,7 +4372,7 @@ public static void handleAnnotationCustomToolbarItemPressed(ViewerComponent comp
String itemKey = mToolIdMap.get(itemId);
if (itemKey != null && annotationCustomToolbarItemPressedEventSink != null) {
// this is a custom button
annotationCustomToolbarItemPressedEventSink.success(itemId);
annotationCustomToolbarItemPressedEventSink.success(itemKey);
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pdftron_flutter
description: A convenience wrapper to build Flutter apps that use the PDFTron mobile SDK for smooth, flexible, and stand-alone document viewing.
version: 1.0.1-30
version: 1.0.1-31
homepage: https://www.pdftron.com
repository: https://github.com/PDFTron/pdftron-flutter
issue_tracker: https://github.com/PDFTron/pdftron-flutter/issues
Expand Down

0 comments on commit 3f5a53e

Please sign in to comment.