Skip to content

Commit 2873917

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "When the status bar hides, close the notification panel."
2 parents b5dfcb8 + 9c00d5b commit 2873917

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
@@ -2169,7 +2169,17 @@ public int finishAnimationLw() {
21692169
if (topIsFullscreen) {
21702170
if (mStatusBarCanHide) {
21712171
if (DEBUG_LAYOUT) Log.v(TAG, "Hiding status bar");
2172-
if (mStatusBar.hideLw(true)) changes |= FINISH_LAYOUT_REDO_LAYOUT;
2172+
if (mStatusBar.hideLw(true)) {
2173+
changes |= FINISH_LAYOUT_REDO_LAYOUT;
2174+
2175+
mHandler.post(new Runnable() { public void run() {
2176+
if (mStatusBarService != null) {
2177+
try {
2178+
mStatusBarService.collapse();
2179+
} catch (RemoteException ex) {}
2180+
}
2181+
}});
2182+
}
21732183
} else if (localLOGV) {
21742184
Log.v(TAG, "Preventing status bar from hiding by policy");
21752185
}

0 commit comments

Comments
 (0)