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

Commit 9c00d5b8 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

When the status bar hides, close the notification panel.

Bug: 5087130
Change-Id: I8a63f424158faa3266f6904c0a57ac352a0555e4
parent 62bb0cdc
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -2180,7 +2180,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");
                    }