Skip to content

Commit

Permalink
Merge pull request #16899 from brave/android_bookmark_fix
Browse files Browse the repository at this point in the history
[Android] Fix for crash or no action on page bookmark
  • Loading branch information
samartnik authored Jan 29, 2023
2 parents 4f199a7 + 7c23df7 commit 0b19967
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 0b19967

Please sign in to comment.