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

Commit e029874b authored by Winson Chung's avatar Winson Chung
Browse files

Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)

parent e1b0682a
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -2053,7 +2053,16 @@ public class Launcher extends Activity
    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
        super.onPrepareOptionsMenu(menu);
        // Close any open folders
        closeFolder();
        // Stop resizing any widgets
        mWorkspace.exitWidgetResizeMode();
        if (!mWorkspace.isInOverviewMode()) {
            // Show the overview mode
            showOverviewMode(true);
        } else {
            showWorkspace(true);
        }
        return false;
    }