Loading packages/SystemUI/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ <integer name="recents_nav_bar_scrim_enter_duration">400</integer> <!-- The animation duration for animating the removal of a task view. --> <integer name="recents_animate_task_view_remove_duration">250</integer> <integer name="recents_animate_task_view_remove_duration">175</integer> <!-- The animation duration for scrolling the stack to a particular item. --> <integer name="recents_animate_task_stack_scroll_duration">200</integer> Loading packages/SystemUI/src/com/android/systemui/recents/events/activity/DismissRecentsToHomeAnimationStarted.java +0 −1 Original line number Diff line number Diff line Loading @@ -28,5 +28,4 @@ public class DismissRecentsToHomeAnimationStarted extends EventBus.AnimatedEvent public DismissRecentsToHomeAnimationStarted(boolean animated) { this.animated = animated; } } packages/SystemUI/src/com/android/systemui/recents/misc/ReferenceCountedTrigger.java +9 −7 Original line number Diff line number Diff line Loading @@ -18,8 +18,6 @@ package com.android.systemui.recents.misc; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; import android.util.Log; import java.util.ArrayList; Loading Loading @@ -107,16 +105,20 @@ public class ReferenceCountedTrigger { mLastDecRunnables.clear(); } /** Convenience method to decrement this trigger as a runnable. */ public Runnable decrementAsRunnable() { return mDecrementRunnable; } /** Convenience method to decrement this trigger as a animator listener. */ /** * Convenience method to decrement this trigger as a animator listener. This listener is * guarded to prevent being called back multiple times, and will trigger a decrement once and * only once. */ public Animator.AnimatorListener decrementOnAnimationEnd() { return new AnimatorListenerAdapter() { private boolean hasEnded; @Override public void onAnimationEnd(Animator animation) { if (hasEnded) return; decrement(); hasEnded = true; } }; } Loading packages/SystemUI/src/com/android/systemui/recents/misc/Utilities.java +9 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,15 @@ public class Utilities { (1f - overlayAlpha) * Color.blue(overlayColor))); } /** * Cancels an animation. */ public static void cancelAnimation(Animator animator) { if (animator != null) { animator.cancel(); } } /** * Cancels an animation ensuring that if it has listeners, onCancel and onEnd * are not called. Loading packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +0 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.graphics.drawable.Drawable; import android.os.UserHandle; import android.os.UserManager; import android.util.ArraySet; import android.util.Log; import com.android.systemui.Prefs; import com.android.systemui.recents.Recents; import com.android.systemui.recents.RecentsConfiguration; Loading Loading @@ -115,8 +114,6 @@ public class RecentsTaskLoadPlan { * - least-recent to most-recent freeform tasks */ public synchronized void preloadPlan(RecentsTaskLoader loader, boolean isTopTaskHome) { RecentsConfiguration config = Recents.getConfiguration(); SystemServicesProxy ssp = Recents.getSystemServices(); Resources res = mContext.getResources(); ArrayList<Task> allTasks = new ArrayList<>(); if (mRawTasks == null) { Loading Loading
packages/SystemUI/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ <integer name="recents_nav_bar_scrim_enter_duration">400</integer> <!-- The animation duration for animating the removal of a task view. --> <integer name="recents_animate_task_view_remove_duration">250</integer> <integer name="recents_animate_task_view_remove_duration">175</integer> <!-- The animation duration for scrolling the stack to a particular item. --> <integer name="recents_animate_task_stack_scroll_duration">200</integer> Loading
packages/SystemUI/src/com/android/systemui/recents/events/activity/DismissRecentsToHomeAnimationStarted.java +0 −1 Original line number Diff line number Diff line Loading @@ -28,5 +28,4 @@ public class DismissRecentsToHomeAnimationStarted extends EventBus.AnimatedEvent public DismissRecentsToHomeAnimationStarted(boolean animated) { this.animated = animated; } }
packages/SystemUI/src/com/android/systemui/recents/misc/ReferenceCountedTrigger.java +9 −7 Original line number Diff line number Diff line Loading @@ -18,8 +18,6 @@ package com.android.systemui.recents.misc; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; import android.util.Log; import java.util.ArrayList; Loading Loading @@ -107,16 +105,20 @@ public class ReferenceCountedTrigger { mLastDecRunnables.clear(); } /** Convenience method to decrement this trigger as a runnable. */ public Runnable decrementAsRunnable() { return mDecrementRunnable; } /** Convenience method to decrement this trigger as a animator listener. */ /** * Convenience method to decrement this trigger as a animator listener. This listener is * guarded to prevent being called back multiple times, and will trigger a decrement once and * only once. */ public Animator.AnimatorListener decrementOnAnimationEnd() { return new AnimatorListenerAdapter() { private boolean hasEnded; @Override public void onAnimationEnd(Animator animation) { if (hasEnded) return; decrement(); hasEnded = true; } }; } Loading
packages/SystemUI/src/com/android/systemui/recents/misc/Utilities.java +9 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,15 @@ public class Utilities { (1f - overlayAlpha) * Color.blue(overlayColor))); } /** * Cancels an animation. */ public static void cancelAnimation(Animator animator) { if (animator != null) { animator.cancel(); } } /** * Cancels an animation ensuring that if it has listeners, onCancel and onEnd * are not called. Loading
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +0 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.graphics.drawable.Drawable; import android.os.UserHandle; import android.os.UserManager; import android.util.ArraySet; import android.util.Log; import com.android.systemui.Prefs; import com.android.systemui.recents.Recents; import com.android.systemui.recents.RecentsConfiguration; Loading Loading @@ -115,8 +114,6 @@ public class RecentsTaskLoadPlan { * - least-recent to most-recent freeform tasks */ public synchronized void preloadPlan(RecentsTaskLoader loader, boolean isTopTaskHome) { RecentsConfiguration config = Recents.getConfiguration(); SystemServicesProxy ssp = Recents.getSystemServices(); Resources res = mContext.getResources(); ArrayList<Task> allTasks = new ArrayList<>(); if (mRawTasks == null) { Loading