Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Correctly restore the bookmarks tray button state after showing a notification #1740

Merged
merged 1 commit into from
Sep 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void show(@ShowFlags int aShowFlags) {

@Override
public void hide(@HideFlags int aHideFlags) {
ThreadUtils.postToUiThread(hideBookmarkNotification);
hideBookmarkNotification.run();

if (mWidgetPlacement.visible) {
mWidgetPlacement.visible = false;
Expand All @@ -294,7 +294,7 @@ public void hide(@HideFlags int aHideFlags) {

@Override
public void detachFromWindow() {
ThreadUtils.postToUiThread(hideBookmarkNotification);
hideBookmarkNotification.run();

if (mSessionStack != null) {
mSessionStack.removeSessionChangeListener(this);
Expand Down Expand Up @@ -503,8 +503,9 @@ public void run() {
public void run() {
if (mLibraryNotification != null) {
mLibraryNotification.hide(UIWidget.REMOVE_WIDGET);
mLibraryNotification = null;
mBookmarksButton.setNotificationMode(false);
}
mBookmarksButton.setNotificationMode(false);
}
};

Expand Down