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

Commit

Permalink
Update tray when a window is closed (and focus didn't change) (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Aug 30, 2019
1 parent 376611a commit 9f84d3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ public void onWindowBorderChanged(@NonNull WindowWidget aChangeWindow) {
public void onWindowsMoved() {
updateWidget(mTray);
}

@Override
public void onWindowClosed() {
updateWidget(mTray);
}
});

// Create Browser navigation widget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public interface Delegate {
void onFocusedWindowChanged(@NonNull WindowWidget aFocusedWindow, @Nullable WindowWidget aPrevFocusedWindow);
void onWindowBorderChanged(@NonNull WindowWidget aChangeWindow);
void onWindowsMoved();
void onWindowClosed();
}

public Windows(Context aContext) {
Expand Down Expand Up @@ -276,6 +277,9 @@ public void closeWindow(@NonNull WindowWidget aWindow) {
}

updateViews();
if (mDelegate != null) {
mDelegate.onWindowClosed();
}
}

public void moveWindowRight(@NonNull WindowWidget aWindow) {
Expand Down

0 comments on commit 9f84d3f

Please sign in to comment.