From 72b6f4d4d972e9987e9b9f4601b41283fd45d090 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 23 May 2014 14:59:51 +0200 Subject: [PATCH 1/2] Decreased shadows between notifications slightly. Bug: 15181880 Change-Id: Iee71e4ebf95df044b7bbdd3044cb69455d704150 --- packages/SystemUI/res/values/dimens.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/res/values/dimens.xml b/packages/SystemUI/res/values/dimens.xml index c2094340d14c0..e9dcea2075509 100644 --- a/packages/SystemUI/res/values/dimens.xml +++ b/packages/SystemUI/res/values/dimens.xml @@ -246,7 +246,7 @@ 8dp - 2dp + 1dp 0dp From 1efb240c1a0aeca9492cf8891794712adfdb1fa7 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 23 May 2014 17:33:00 +0200 Subject: [PATCH 2/2] The layertype was incorrectly restored with overlapping alpha animations. This could lead to weird clipping bugs on the lockscreen. We now simply set its type to back to NONE after the animation. Bug: 15186220 Change-Id: I884b6830d748309105ed62471cb8b6dee71d51fe --- .../android/systemui/statusbar/stack/StackStateAnimator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java index 045a99dd01cc1..f019e6cbffd78 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java @@ -315,14 +315,13 @@ public class StackStateAnimator { child.getAlpha(), newEndValue); animator.setInterpolator(mFastOutSlowInInterpolator); // Handle layer type - final int currentLayerType = child.getLayerType(); child.setLayerType(View.LAYER_TYPE_HARDWARE, null); animator.addListener(new AnimatorListenerAdapter() { public boolean mWasCancelled; @Override public void onAnimationEnd(Animator animation) { - child.setLayerType(currentLayerType, null); + child.setLayerType(View.LAYER_TYPE_NONE, null); if (newEndValue == 0 && !mWasCancelled) { child.setVisibility(View.INVISIBLE); }