Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28739171 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "When the status bar hides, close the notification panel."

parents b5dfcb8a 9c00d5b8
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2169,7 +2169,17 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                if (topIsFullscreen) {
                    if (mStatusBarCanHide) {
                        if (DEBUG_LAYOUT) Log.v(TAG, "Hiding status bar");
                        if (mStatusBar.hideLw(true)) changes |= FINISH_LAYOUT_REDO_LAYOUT;
                        if (mStatusBar.hideLw(true)) {
                            changes |= FINISH_LAYOUT_REDO_LAYOUT;

                            mHandler.post(new Runnable() { public void run() {
                                if (mStatusBarService != null) {
                                    try {
                                        mStatusBarService.collapse();
                                    } catch (RemoteException ex) {}
                                }
                            }});
                        }
                    } else if (localLOGV) {
                        Log.v(TAG, "Preventing status bar from hiding by policy");
                    }