Merge "Relocate transition collection around lifecycle events (1/N)"

This commit is contained in:
Evan Rosky
2020-11-17 23:24:22 +00:00
committed by Android (Google) Code Review
14 changed files with 223 additions and 120 deletions

View File

@@ -109,13 +109,10 @@ public class Transitions extends ITransitionPlayer.Stub {
mAnimExecutor.execute(va::start);
}
private static boolean isOpeningType(@WindowManager.TransitionOldType int legacyType) {
// TODO(shell-transitions): consider providing and using z-order vs the global type for
// this determination.
return legacyType == WindowManager.TRANSIT_OLD_TASK_OPEN
|| legacyType == WindowManager.TRANSIT_OLD_TASK_TO_FRONT
|| legacyType == WindowManager.TRANSIT_OLD_TASK_OPEN_BEHIND
|| legacyType == WindowManager.TRANSIT_OLD_KEYGUARD_GOING_AWAY;
private static boolean isOpeningType(@WindowManager.TransitionType int type) {
return type == WindowManager.TRANSIT_OPEN
|| type == WindowManager.TRANSIT_TO_FRONT
|| type == WindowManager.TRANSIT_KEYGUARD_GOING_AWAY;
}
@Override