Merge "Add method to pause expensive view updates during the app launch aimation" into tm-dev am: ed8f41b5e2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17085606 Change-Id: Ia6b3ab7aa49a15b8c41de1be1a0a4e6b6e217270
This commit is contained in:
commit
94f7a90774
2 files changed
+14
-3
No files matched your search
@@ -579,8 +579,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
}
|
||||
}
|
||||
|
||||
// Pause page indicator animations as they lead to layer trashing.
|
||||
mLauncher.getWorkspace().getPageIndicator().pauseAnimations();
|
||||
// Pause expensive view updates as they can lead to layer thrashing and skipped frames.
|
||||
mLauncher.pauseExpensiveViewUpdates();
|
||||
|
||||
endListener = () -> {
|
||||
viewsToAnimate.forEach(view -> {
|
||||
@@ -590,7 +590,7 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
if (scrimEnabled) {
|
||||
mLauncher.getScrimView().setBackgroundColor(Color.TRANSPARENT);
|
||||
}
|
||||
mLauncher.getWorkspace().getPageIndicator().skipAnimationsToEnd();
|
||||
mLauncher.resumeExpensiveViewUpdates();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user