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

Recalculate the max window size when getting max size #2988

Merged
merged 1 commit into from
Mar 19, 2020
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 @@ -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
Original file line number Diff line number Diff line change
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