Merge "Fix animation slowdown when splitting from All Apps" into tm-qpr-dev

This commit is contained in:
Jeremy Sim authored and Android (Google) Code Review committed 2022-10-03 23:31:59 +00:00
commit 33e57ebc1a
2 files changed
+5 -1

No files matched your search

@@ -197,7 +197,8 @@ public class QuickstepAtomicAnimationFactory extends
config.setInterpolator(ANIM_OVERVIEW_ACTIONS_FADE, clampToProgress(LINEAR,
timings.getActionsFadeStartOffset(),
timings.getActionsFadeEndOffset()));
} else if (fromState == NORMAL && toState == OVERVIEW_SPLIT_SELECT) {
} else if ((fromState == NORMAL || fromState == ALL_APPS)
&& toState == OVERVIEW_SPLIT_SELECT) {
// Splitting from Home is currently only available on tablets
SplitAnimationTimings timings = SplitAnimationTimings.TABLET_HOME_TO_SPLIT;
config.setInterpolator(ANIM_SCRIM_FADE, clampToProgress(LINEAR,
@@ -4157,6 +4157,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
}
}
/**
* Called when staging a split from Home/AllApps, using the icon long-press menu.
*/
public void initiateSplitSelect(QuickstepSystemShortcut.SplitSelectSource splitSelectSource) {
mSplitSelectSource = splitSelectSource;
mSplitSelectStateController.setInitialTaskSelect(splitSelectSource.intent,