DO NOT MERGE Optimizing ScreenDecorations performance

Avoid calling onTuningChanged() when onConfigurationChanged() trigger
Only calling onTuningChanged() when roundedCornersChanged is true.

Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Bug: 148912090
Change-Id: I2507d12b277d058cef390d7c55488d0d09dde206
Merged-In: Ie33526214072ad324ca00a10074ad212dfbf4258
This commit is contained in:
Bill Lin
2020-03-13 16:09:43 +08:00
parent a8441e2058
commit a1c9c5433d

View File

@@ -588,8 +588,8 @@ public class ScreenDecorations extends SystemUI implements Tunable,
mRoundedDefaultTop = newRoundedDefaultTop;
mRoundedDefaultBottom = newRoundedDefaultBottom;
}
onTuningChanged(SIZE, null);
}
onTuningChanged(SIZE, null);
}
private void updateViews() {