summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/stack
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2014-09-09 15:21:38 +0200
committerJorim Jaggi <jjaggi@google.com>2014-09-09 15:51:39 +0200
commit4538cee46d3aa91c85a453049d2b2284b799c66a (patch)
treeac5897703225ea8aa4432767d8f782425ce8737b /packages/SystemUI/src/com/android/systemui/statusbar/stack
parentf8a52c06674e3e215898ba4a390f7cc43b4c486a (diff)
downloadframeworks_base-4538cee46d3aa91c85a453049d2b2284b799c66a.zip
frameworks_base-4538cee46d3aa91c85a453049d2b2284b799c66a.tar.gz
frameworks_base-4538cee46d3aa91c85a453049d2b2284b799c66a.tar.bz2
Do not dim the non-activated notifications on lockscreen
This fixes a lot of jank when showing all cards by tapping the more card, because this lead to layer trashing in every frame (the background was updated as well as the overall alpha for the card). Bug: 17419967 Change-Id: Ib39af6eaab26409eedff72c921e9aa1ede31b830
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/stack')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
index 7c4c0e8..e4a1c27 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
@@ -40,8 +40,6 @@ public class StackScrollAlgorithm {
private static final int MAX_ITEMS_IN_BOTTOM_STACK = 3;
private static final int MAX_ITEMS_IN_TOP_STACK = 3;
- /** When a child is activated, the other cards' alpha fade to this value. */
- private static final float ACTIVATED_INVERSE_ALPHA = 0.9f;
public static final float DIMMED_SCALE = 0.95f;
private int mPaddingBetweenElements;
@@ -270,12 +268,8 @@ public class StackScrollAlgorithm {
childViewState.scale = !mScaleDimmed || !dimmed || isActivatedChild
? 1.0f
: DIMMED_SCALE;
- if (dimmed && activatedChild != null) {
- if (!isActivatedChild) {
- childViewState.alpha *= ACTIVATED_INVERSE_ALPHA;
- } else {
- childViewState.zTranslation += 2.0f * mZDistanceBetweenElements;
- }
+ if (dimmed && isActivatedChild) {
+ childViewState.zTranslation += 2.0f * mZDistanceBetweenElements;
}
}
}