diff options
author | Selim Cinek <cinek@google.com> | 2014-11-12 16:33:24 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-12 16:33:24 +0000 |
commit | 465d1eb7461676d37dd83accf28871017549f961 (patch) | |
tree | 39eb241ee5ec27ed99c20a2c01be23864de772c3 /packages/SystemUI | |
parent | 7dc856035c99677786f9e6ec72e656dec0fe52e9 (diff) | |
parent | 1419db40f75be642f9d503e51ecc2b205f792bcd (diff) | |
download | frameworks_base-465d1eb7461676d37dd83accf28871017549f961.zip frameworks_base-465d1eb7461676d37dd83accf28871017549f961.tar.gz frameworks_base-465d1eb7461676d37dd83accf28871017549f961.tar.bz2 |
am 1419db40: am 89444a38: Merge "Solved notification overlay issue once and for all" into lmp-mr1-dev
* commit '1419db40f75be642f9d503e51ecc2b205f792bcd':
Solved notification overlay issue once and for all
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java | 3 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java | 5 |
2 files changed, 8 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 ab25c45..e63be97 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -2008,6 +2008,9 @@ public class NotificationStackScrollLayout extends ViewGroup mStackScrollAlgorithm.onExpansionStopped(); if (!mIsExpanded) { mOwnScrollY = 0; + + // lets make sure nothing is in the overlay anymore + getOverlay().clear(); } } 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 674642b..a56440c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java @@ -794,6 +794,11 @@ public class StackStateAnimator { mHostLayout.getOverlay().remove(changingView); } }); + } else if (event.animationType == + NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_REMOVE_SWIPED_OUT) { + // A race condition can trigger the view to be added to the overlay even though + // it is swiped out. So let's remove it + mHostLayout.getOverlay().remove(changingView); } mNewEvents.add(event); } |