Loading quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java +14 −3 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ public class QuickstepAtomicAnimationFactory extends @Override public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, StateAnimationConfig config) { RecentsView overview = mActivity.getOverviewPanel(); if (toState == NORMAL && fromState == OVERVIEW) { config.setInterpolator(ANIM_WORKSPACE_SCALE, DEACCEL); config.setInterpolator(ANIM_WORKSPACE_FADE, ACCEL); Loading @@ -85,10 +86,15 @@ public class QuickstepAtomicAnimationFactory extends config.setInterpolator(ANIM_OVERVIEW_TRANSLATE_X, ACCEL_DEACCEL); if (SysUINavigationMode.getMode(mActivity) == NO_BUTTON) { // Scrolling in tasks, so make visible straight away if (overview.getTaskViewCount() > 0) { config.setInterpolator(ANIM_OVERVIEW_FADE, FINAL_FRAME); } else { config.setInterpolator(ANIM_OVERVIEW_FADE, DEACCEL_1_7); } } else { config.setInterpolator(ANIM_OVERVIEW_FADE, DEACCEL_1_7); } Workspace workspace = mActivity.getWorkspace(); // Start from a higher workspace scale, but only if we're invisible so we don't jump. Loading Loading @@ -122,13 +128,18 @@ public class QuickstepAtomicAnimationFactory extends config.setInterpolator(ANIM_WORKSPACE_SCALE, fromState == NORMAL ? ACCEL : OVERSHOOT_1_2); config.setInterpolator(ANIM_WORKSPACE_TRANSLATE, ACCEL); // Scrolling in tasks, so show straight away if (overview.getTaskViewCount() > 0) { config.setInterpolator(ANIM_OVERVIEW_FADE, INSTANT); } else { config.setInterpolator(ANIM_OVERVIEW_FADE, OVERSHOOT_1_2); } } else { config.setInterpolator(ANIM_WORKSPACE_SCALE, OVERSHOOT_1_2); config.setInterpolator(ANIM_OVERVIEW_FADE, OVERSHOOT_1_2); // Scale up the recents, if it is not coming from the side RecentsView overview = mActivity.getOverviewPanel(); if (overview.getVisibility() != VISIBLE || overview.getContentAlpha() == 0) { RECENTS_SCALE_PROPERTY.set(overview, RECENTS_PREPARE_SCALE); } Loading Loading
quickstep/src/com/android/launcher3/uioverrides/states/QuickstepAtomicAnimationFactory.java +14 −3 Original line number Diff line number Diff line Loading @@ -77,6 +77,7 @@ public class QuickstepAtomicAnimationFactory extends @Override public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, StateAnimationConfig config) { RecentsView overview = mActivity.getOverviewPanel(); if (toState == NORMAL && fromState == OVERVIEW) { config.setInterpolator(ANIM_WORKSPACE_SCALE, DEACCEL); config.setInterpolator(ANIM_WORKSPACE_FADE, ACCEL); Loading @@ -85,10 +86,15 @@ public class QuickstepAtomicAnimationFactory extends config.setInterpolator(ANIM_OVERVIEW_TRANSLATE_X, ACCEL_DEACCEL); if (SysUINavigationMode.getMode(mActivity) == NO_BUTTON) { // Scrolling in tasks, so make visible straight away if (overview.getTaskViewCount() > 0) { config.setInterpolator(ANIM_OVERVIEW_FADE, FINAL_FRAME); } else { config.setInterpolator(ANIM_OVERVIEW_FADE, DEACCEL_1_7); } } else { config.setInterpolator(ANIM_OVERVIEW_FADE, DEACCEL_1_7); } Workspace workspace = mActivity.getWorkspace(); // Start from a higher workspace scale, but only if we're invisible so we don't jump. Loading Loading @@ -122,13 +128,18 @@ public class QuickstepAtomicAnimationFactory extends config.setInterpolator(ANIM_WORKSPACE_SCALE, fromState == NORMAL ? ACCEL : OVERSHOOT_1_2); config.setInterpolator(ANIM_WORKSPACE_TRANSLATE, ACCEL); // Scrolling in tasks, so show straight away if (overview.getTaskViewCount() > 0) { config.setInterpolator(ANIM_OVERVIEW_FADE, INSTANT); } else { config.setInterpolator(ANIM_OVERVIEW_FADE, OVERSHOOT_1_2); } } else { config.setInterpolator(ANIM_WORKSPACE_SCALE, OVERSHOOT_1_2); config.setInterpolator(ANIM_OVERVIEW_FADE, OVERSHOOT_1_2); // Scale up the recents, if it is not coming from the side RecentsView overview = mActivity.getOverviewPanel(); if (overview.getVisibility() != VISIBLE || overview.getContentAlpha() == 0) { RECENTS_SCALE_PROPERTY.set(overview, RECENTS_PREPARE_SCALE); } Loading