Skip to content

Commit

Permalink
[Android] Fix for crash or no action on page bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
samartnik committed Jan 28, 2023
1 parent cd3efcd commit 7c23df7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public static void addOrEditBookmark(@Nullable BookmarkItem existingBookmarkItem
snackbarManager.dismissAllSnackbars();
}
bookmarkModel.deleteBookmark(existingBookmarkItem.getId());
bookmarkModel.destroy();
callback.onResult(existingBookmarkItem.getId());
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ protected void onOrientationChange(int newOrientation) {
}

protected void updateBookmarkButtonStatus() {
if (mBookmarkModelSupplier == null) return;
Tab currentTab = mLocationBarModel.getTab();
BookmarkModel bridge = mBookmarkModelSupplier.get();
boolean isBookmarked =
Expand Down

0 comments on commit 7c23df7

Please sign in to comment.