Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +15 −3 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ public class BubbleStackView extends FrameLayout private boolean mShowingDismiss = false; /** The view to desaturate/darken when magneted to the dismiss target. */ private View mDesaturateAndDarkenTargetView; @Nullable private View mDesaturateAndDarkenTargetView; private LayoutInflater mInflater; Loading Loading @@ -908,7 +908,10 @@ public class BubbleStackView extends FrameLayout // Update the paint and apply it to the bubble container. mDesaturateAndDarkenPaint.setColorFilter(new ColorMatrixColorFilter(animatedMatrix)); if (mDesaturateAndDarkenTargetView != null) { mDesaturateAndDarkenTargetView.setLayerPaint(mDesaturateAndDarkenPaint); } }); // If the stack itself is touched, it means none of its touchable views (bubbles, flyouts, Loading Loading @@ -1894,6 +1897,10 @@ public class BubbleStackView extends FrameLayout private void animateDesaturateAndDarken(View targetView, boolean desaturateAndDarken) { mDesaturateAndDarkenTargetView = targetView; if (mDesaturateAndDarkenTargetView == null) { return; } if (desaturateAndDarken) { // Use the animated paint for the bubbles. mDesaturateAndDarkenTargetView.setLayerType( Loading @@ -1915,9 +1922,14 @@ public class BubbleStackView extends FrameLayout } private void resetDesaturationAndDarken() { mDesaturateAndDarkenAnimator.removeAllListeners(); mDesaturateAndDarkenAnimator.cancel(); if (mDesaturateAndDarkenTargetView != null) { mDesaturateAndDarkenTargetView.setLayerType(View.LAYER_TYPE_NONE, null); mDesaturateAndDarkenTargetView = null; } } /** Animates in the dismiss target. */ Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +15 −3 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ public class BubbleStackView extends FrameLayout private boolean mShowingDismiss = false; /** The view to desaturate/darken when magneted to the dismiss target. */ private View mDesaturateAndDarkenTargetView; @Nullable private View mDesaturateAndDarkenTargetView; private LayoutInflater mInflater; Loading Loading @@ -908,7 +908,10 @@ public class BubbleStackView extends FrameLayout // Update the paint and apply it to the bubble container. mDesaturateAndDarkenPaint.setColorFilter(new ColorMatrixColorFilter(animatedMatrix)); if (mDesaturateAndDarkenTargetView != null) { mDesaturateAndDarkenTargetView.setLayerPaint(mDesaturateAndDarkenPaint); } }); // If the stack itself is touched, it means none of its touchable views (bubbles, flyouts, Loading Loading @@ -1894,6 +1897,10 @@ public class BubbleStackView extends FrameLayout private void animateDesaturateAndDarken(View targetView, boolean desaturateAndDarken) { mDesaturateAndDarkenTargetView = targetView; if (mDesaturateAndDarkenTargetView == null) { return; } if (desaturateAndDarken) { // Use the animated paint for the bubbles. mDesaturateAndDarkenTargetView.setLayerType( Loading @@ -1915,9 +1922,14 @@ public class BubbleStackView extends FrameLayout } private void resetDesaturationAndDarken() { mDesaturateAndDarkenAnimator.removeAllListeners(); mDesaturateAndDarkenAnimator.cancel(); if (mDesaturateAndDarkenTargetView != null) { mDesaturateAndDarkenTargetView.setLayerType(View.LAYER_TYPE_NONE, null); mDesaturateAndDarkenTargetView = null; } } /** Animates in the dismiss target. */ Loading