summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-10-29 17:35:30 +0100
committerChristoph Studer <chstuder@google.com>2014-10-29 17:35:30 +0100
commit12cf9e5159ee19e2335e436241a7bc6d5eb10bee (patch)
tree6008fac68d0141961d26130de6a4feda9ab599e8 /packages
parentd3a8c8aa530e6c1a605f469df7b378f688e7905a (diff)
downloadframeworks_base-12cf9e5159ee19e2335e436241a7bc6d5eb10bee.zip
frameworks_base-12cf9e5159ee19e2335e436241a7bc6d5eb10bee.tar.gz
frameworks_base-12cf9e5159ee19e2335e436241a7bc6d5eb10bee.tar.bz2
SysUI: Never log GONE notifications as visible
Bug: 18170453 Change-Id: I58a3990b481889fe4a1370e1eaa88058df53079d
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java3
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java2
2 files changed, 5 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
index 4a20406..dd178cd 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java
@@ -367,6 +367,9 @@ public class NotificationStackScrollLayout extends ViewGroup
if (childViewState == null) {
return ViewState.LOCATION_UNKNOWN;
}
+ if (childViewState.gone) {
+ return ViewState.LOCATION_GONE;
+ }
return childViewState.location;
}
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java
index 0967ecd..09cd335 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollState.java
@@ -236,6 +236,8 @@ public class StackScrollState {
public static final int LOCATION_MAIN_AREA = 0x08;
public static final int LOCATION_BOTTOM_STACK_PEEKING = 0x10;
public static final int LOCATION_BOTTOM_STACK_HIDDEN = 0x20;
+ /** The view isn't layouted at all. */
+ public static final int LOCATION_GONE = 0x40;
float alpha;
float yTranslation;