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

Update tray when a window is closed (and focus didn't change) #1723

Merged
merged 1 commit into from
Aug 30, 2019
Merged
Show file tree
Hide file tree
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 @@ -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