Skip to content

Commit

Permalink
Recalculate the max window size when getting max size (#2988)
Browse files Browse the repository at this point in the history
Fixes #2900
  • Loading branch information
bluemarvin committed Mar 19, 2020
1 parent a52060c commit a7251f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -1295,6 +1295,10 @@ public void setMaxWindowScale(float aScale) {
}

public float getMaxWindowScale() {
Windows windows = mWidgetManager.getWindows();
if (windows != null) {
windows.updateMaxWindowScales();
}
return mMaxWindowScale;
}

Expand Down
Expand Up @@ -608,7 +608,7 @@ public boolean handleBack() {
return false;
}

private void updateMaxWindowScales() {
void updateMaxWindowScales() {
float maxScale = 3;
if (mFullscreenWindow == null && getCurrentWindows().size() >= 3) {
maxScale = 1.5f;
Expand Down

0 comments on commit a7251f8

Please sign in to comment.