mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Don't call onModalnessUpdated if modalness stays the same
- Repeatedly calling onModalnessUpdated results in repeated calls of View.setAlpha, which caused regression in Overview loading time Fix: 341266234 Test: android.platform.test.scenario.messenger.OpenAppFromQuickStepAndOpenQuickStepMicrobenchmark#testOpenQuickStepAndOpenApp Flag: EXEMPT bugfix Change-Id: Id756e80f20afafee2bb45e6a3ab861d83ab0b674
This commit is contained in:
@@ -257,6 +257,9 @@ constructor(
|
||||
*/
|
||||
protected var modalness = 0f
|
||||
set(value) {
|
||||
if (field == value) {
|
||||
return
|
||||
}
|
||||
field = value
|
||||
onModalnessUpdated(field)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user