Update Launcher state anim duration for pinned & transient taskbar
* We were syncing the duration of the animation to be at most that of the taskbar/hotseat animation but only for transient taskbar. * Now we sync for transient and pinned Fixes: 328052756 Test: Anim jank doesn't repro Change-Id: I21f20cbc08a2018498dde3eff871929e5a5b7d7d
This commit is contained in:
+1
-2
@@ -135,8 +135,7 @@ public class QuickstepAtomicAnimationFactory extends
|
||||
config.duration = Math.max(config.duration, scrollDuration);
|
||||
|
||||
// Sync scroll so that it ends before or at the same time as the taskbar animation.
|
||||
if (DisplayController.isTransientTaskbar(mActivity)
|
||||
&& mActivity.getDeviceProfile().isTaskbarPresent) {
|
||||
if (mActivity.getDeviceProfile().isTaskbarPresent) {
|
||||
config.duration = Math.min(config.duration, TASKBAR_TO_HOME_DURATION);
|
||||
}
|
||||
overview.snapToPage(DEFAULT_PAGE, Math.toIntExact(config.duration));
|
||||
|
||||
Reference in New Issue
Block a user