Skip to content

Commit

Permalink
Update bookmarks tray button state after dismissing the notification (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Sep 3, 2019
1 parent 03c4d09 commit a2ad0e1
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit a2ad0e1

Please sign in to comment.