Skip to content

Commit 9c00d5b

Browse files
committed
When the status bar hides, close the notification panel.
Bug: 5087130 Change-Id: I8a63f424158faa3266f6904c0a57ac352a0555e4
1 parent 62bb0cd commit 9c00d5b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,17 @@ public int finishAnimationLw() {
21802180
if (topIsFullscreen) {
21812181
if (mStatusBarCanHide) {
21822182
if (DEBUG_LAYOUT) Log.v(TAG, "Hiding status bar");
2183-
if (mStatusBar.hideLw(true)) changes |= FINISH_LAYOUT_REDO_LAYOUT;
2183+
if (mStatusBar.hideLw(true)) {
2184+
changes |= FINISH_LAYOUT_REDO_LAYOUT;
2185+
2186+
mHandler.post(new Runnable() { public void run() {
2187+
if (mStatusBarService != null) {
2188+
try {
2189+
mStatusBarService.collapse();
2190+
} catch (RemoteException ex) {}
2191+
}
2192+
}});
2193+
}
21842194
} else if (localLOGV) {
21852195
Log.v(TAG, "Preventing status bar from hiding by policy");
21862196
}

0 commit comments

Comments
 (0)