Loading packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +9 −0 Original line number Diff line number Diff line Loading @@ -403,6 +403,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } private void fadeBackground() { mBackgroundNormal.animate().cancel(); if (mDimmed) { mBackgroundDimmed.setVisibility(View.VISIBLE); } else { Loading Loading @@ -446,6 +447,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView mBackgroundDimmed.setVisibility(View.VISIBLE); mBackgroundNormal.setVisibility(View.INVISIBLE); } else { cancelFadeAnimations(); mBackgroundDimmed.setVisibility(View.INVISIBLE); mBackgroundNormal.setVisibility(View.VISIBLE); mBackgroundNormal.setAlpha(1f); Loading @@ -453,6 +455,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } } private void cancelFadeAnimations() { if (mBackgroundAnimator != null) { mBackgroundAnimator.cancel(); } mBackgroundNormal.animate().cancel(); } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +9 −0 Original line number Diff line number Diff line Loading @@ -403,6 +403,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } private void fadeBackground() { mBackgroundNormal.animate().cancel(); if (mDimmed) { mBackgroundDimmed.setVisibility(View.VISIBLE); } else { Loading Loading @@ -446,6 +447,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView mBackgroundDimmed.setVisibility(View.VISIBLE); mBackgroundNormal.setVisibility(View.INVISIBLE); } else { cancelFadeAnimations(); mBackgroundDimmed.setVisibility(View.INVISIBLE); mBackgroundNormal.setVisibility(View.VISIBLE); mBackgroundNormal.setAlpha(1f); Loading @@ -453,6 +455,13 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView } } private void cancelFadeAnimations() { if (mBackgroundAnimator != null) { mBackgroundAnimator.cancel(); } mBackgroundNormal.animate().cancel(); } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); Loading