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

Commit

Permalink
Fix resize mode visible on top of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Dec 18, 2018
1 parent f4868c7 commit f20a93c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,11 @@ public void onPrivateBrowsingClicked() {

}

@Override
public void onSettingsClicked() {
exitResizeMode(false);
}

private void finishWidgetResize() {
mWidgetManager.finishWidgetResize(mWindowWidget);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
public interface TrayListener {
void onBookmarksClicked();
void onPrivateBrowsingClicked();
void onSettingsClicked();
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ private void initialize(Context aContext) {
}

toggleSettingsDialog();
notifySettingsClicked();
if (isDialogOpened(mSettingsDialogHandle))
view.requestFocusFromTouch();
});
Expand Down Expand Up @@ -187,6 +188,10 @@ private void notifyPrivateBrowsingClicked() {
mTrayListeners.forEach(trayListener -> trayListener.onPrivateBrowsingClicked());
}

private void notifySettingsClicked() {
mTrayListeners.forEach(trayListener -> trayListener.onSettingsClicked());
}

@Override
protected void initializeWidgetPlacement(WidgetPlacement aPlacement) {
Context context = getContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ public void onPrivateBrowsingClicked() {
}
}

@Override
public void onSettingsClicked() {

}

// GeckoSession.ContentDelegate
@Override
public void onTitleChange(GeckoSession session, String title) {
Expand Down

0 comments on commit f20a93c

Please sign in to comment.