summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-08-28 14:30:12 +0200
committerSelim Cinek <cinek@google.com>2014-08-28 15:09:29 +0200
commit95ed59283bd25fb363d13c000a7408bcafb5e93e (patch)
treef9c15a0cd07c385bfaa1280576974519b50d6213 /packages/SystemUI/src/com/android
parent24ac55e658f955c330fff4bb143cfc6af37e40bf (diff)
downloadframeworks_base-95ed59283bd25fb363d13c000a7408bcafb5e93e.zip
frameworks_base-95ed59283bd25fb363d13c000a7408bcafb5e93e.tar.gz
frameworks_base-95ed59283bd25fb363d13c000a7408bcafb5e93e.tar.bz2
Fixed a bug where notifications could remain in the overlay.
This led to notifications being visible even though they should have been removed Bug: 17295716 Change-Id: I05a243d5c9ca359d1f5ca29a7535935d6e61a4d6
Diffstat (limited to 'packages/SystemUI/src/com/android')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java2
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java1
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
index fef4a39..500bf45 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java
@@ -461,6 +461,8 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
if (mDrawingAppearAnimation) {
startAppearAnimation(false /* isAppearing */, translationDirection,
0, duration, onFinishedRunnable);
+ } else if (onFinishedRunnable != null) {
+ onFinishedRunnable.run();
}
}
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 afd7216..cd3c1a0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java
@@ -747,6 +747,7 @@ public class StackStateAnimator {
} else if (event.animationType ==
NotificationStackScrollLayout.AnimationEvent.ANIMATION_TYPE_REMOVE) {
if (changingView.getVisibility() == View.GONE) {
+ mHostLayout.getOverlay().remove(changingView);
continue;
}