summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-01-07 11:38:12 -0500
committerDaniel Sandler <dsandler@google.com>2011-01-07 11:38:12 -0500
commit6869c1876b73cc0d47bbd654d13989ef3d1b7c9b (patch)
tree70a706dd8a7577c5d1588f237891f2ad31657c9b /packages
parent8896079dac2ced0189225b49fdb0182e860b1f73 (diff)
downloadframeworks_base-6869c1876b73cc0d47bbd654d13989ef3d1b7c9b.zip
frameworks_base-6869c1876b73cc0d47bbd654d13989ef3d1b7c9b.tar.gz
frameworks_base-6869c1876b73cc0d47bbd654d13989ef3d1b7c9b.tar.bz2
Fix stuck-open notification shade.
Reversing the animations isn't working well, but re-creating them in the correct direction is, so we'll use that for now. Bug: 3326529 Change-Id: I40fdbd1d02bb8028d4d1f1bceb15f2c335366063
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java
index 3ca1e12..7dcf9be 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java
@@ -251,14 +251,11 @@ public class NotificationPanel extends LinearLayout implements StatusBarPanel,
void startAnimation(boolean visible) {
if (DEBUG) Slog.d(TAG, "startAnimation(visible=" + visible + ")");
- if (mBgAnim != null && mVisible != visible) {
- mBgAnim.reverse();
- mPositionAnim.reverse();
- } else {
- createAnimation(visible);
- mBgAnim.start();
- mPositionAnim.start();
- }
+
+ createAnimation(visible);
+ mBgAnim.start();
+ mPositionAnim.start();
+
mVisible = visible;
}