Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonDrawable.java +18 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,24 @@ public class KeyButtonDrawable extends Drawable { } } @Override public boolean setVisible(boolean visible, boolean restart) { boolean changed = super.setVisible(visible, restart); if (changed) { // End any existing animations when the visibility changes jumpToCurrentState(); } return changed; } @Override public void jumpToCurrentState() { super.jumpToCurrentState(); if (mAnimatedDrawable != null) { mAnimatedDrawable.jumpToCurrentState(); } } @Override public void setAlpha(int alpha) { mState.mAlpha = alpha; Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java +10 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,16 @@ public class KeyButtonRipple extends Drawable { } } @Override public boolean setVisible(boolean visible, boolean restart) { boolean changed = super.setVisible(visible, restart); if (changed) { // End any existing animations when the visibility changes jumpToCurrentState(); } return changed; } @Override public void jumpToCurrentState() { endAnimations("jumpToCurrentState", false /* cancel */); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonDrawable.java +18 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,24 @@ public class KeyButtonDrawable extends Drawable { } } @Override public boolean setVisible(boolean visible, boolean restart) { boolean changed = super.setVisible(visible, restart); if (changed) { // End any existing animations when the visibility changes jumpToCurrentState(); } return changed; } @Override public void jumpToCurrentState() { super.jumpToCurrentState(); if (mAnimatedDrawable != null) { mAnimatedDrawable.jumpToCurrentState(); } } @Override public void setAlpha(int alpha) { mState.mAlpha = alpha; Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonRipple.java +10 −0 Original line number Diff line number Diff line Loading @@ -224,6 +224,16 @@ public class KeyButtonRipple extends Drawable { } } @Override public boolean setVisible(boolean visible, boolean restart) { boolean changed = super.setVisible(visible, restart); if (changed) { // End any existing animations when the visibility changes jumpToCurrentState(); } return changed; } @Override public void jumpToCurrentState() { endAnimations("jumpToCurrentState", false /* cancel */); Loading