Loading quickstep/src/com/android/launcher3/taskbar/StashedHandleView.java +5 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class StashedHandleView extends View { private final int[] mTmpArr = new int[2]; private @Nullable ObjectAnimator mColorChangeAnim; private Boolean mIsRegionDark; public StashedHandleView(Context context) { this(context, null); Loading Loading @@ -95,7 +96,11 @@ public class StashedHandleView extends View { * @param animate Whether to animate the change, or apply it immediately. */ public void updateHandleColor(boolean isRegionDark, boolean animate) { if (mIsRegionDark != null && mIsRegionDark == isRegionDark) { return; } int newColor = isRegionDark ? mStashedHandleLightColor : mStashedHandleDarkColor; mIsRegionDark = isRegionDark; if (mColorChangeAnim != null) { mColorChangeAnim.cancel(); } Loading Loading
quickstep/src/com/android/launcher3/taskbar/StashedHandleView.java +5 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class StashedHandleView extends View { private final int[] mTmpArr = new int[2]; private @Nullable ObjectAnimator mColorChangeAnim; private Boolean mIsRegionDark; public StashedHandleView(Context context) { this(context, null); Loading Loading @@ -95,7 +96,11 @@ public class StashedHandleView extends View { * @param animate Whether to animate the change, or apply it immediately. */ public void updateHandleColor(boolean isRegionDark, boolean animate) { if (mIsRegionDark != null && mIsRegionDark == isRegionDark) { return; } int newColor = isRegionDark ? mStashedHandleLightColor : mStashedHandleDarkColor; mIsRegionDark = isRegionDark; if (mColorChangeAnim != null) { mColorChangeAnim.cancel(); } Loading