diff options
author | Thiago Vinícius Freire de Araújo Ribeiro <thiagovfar@gmail.com> | 2013-02-22 20:19:53 -0300 |
---|---|---|
committer | Thiago Vinícius Freire de Araújo Ribeiro <thiagovfar@gmail.com> | 2013-02-22 20:58:00 -0300 |
commit | b26f3f675f4630542436e15aaece23385fbd3a42 (patch) | |
tree | 2c19c2f2be10dcb9ba5a1cdbd0f1aeae30717f5e /packages/SystemUI/src/com/android/systemui/statusbar/phone | |
parent | d5132610d882f2bdc81231c025b23469e01194ba (diff) | |
download | frameworks_base-b26f3f675f4630542436e15aaece23385fbd3a42.zip frameworks_base-b26f3f675f4630542436e15aaece23385fbd3a42.tar.gz frameworks_base-b26f3f675f4630542436e15aaece23385fbd3a42.tar.bz2 |
SystemUI: Avoid "phantom" status bar collapsing
There is one specific case where the status bar may collapse
for no aparent reason: When the last notification is removed.
If Quick Settings panel is showing while such a notification
is removed, the status bar WILL collapse -- and the user may
be left wondering why, because the notification that was just
removed isn't visible in that case.
A way to reproduce this behaviour follows:
1) Settings -> System -> Quick Settings Panel -> uncheck
"Auto close panel"
2) Dismiss all notifications, even the sticky ones.
3) Open the Quick Settings Panel and tap the apropriate
tile to light the Torch
4) Tap the tile again, to extinguish the Torch.
As you can see, the Quick Settings Panel collapses. This
happens because Torch puts up a notification, when lit and
removes it, just after it's turned off.
This will happen to whatever notification that hides itself,
e.g. a GMail notification, which vanishes when you read the
e-mail on another device. This too will trigger this issue.
-----
This patch prevents the bar from collapsing, as consequence
of removing the last notification, when Quick Settings is
showing.
Change-Id: I8c7c015c836810a465268b25b90c9166c4485a9f
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index fd143a1..4fb2f4d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -1091,7 +1091,8 @@ public class PhoneStatusBar extends BaseStatusBar { mHandler.sendEmptyMessage(MSG_HIDE_INTRUDER); } - if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData.size() == 0 && !mAnimating) { + if (CLOSE_PANEL_WHEN_EMPTIED && mNotificationData.size() == 0 && !mAnimating + && !isShowingSettings()) { animateCollapsePanels(); } } |