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

Commit 9e8d1737 authored by Fabrice Di Meglio's avatar Fabrice Di Meglio Committed by Android (Google) Code Review
Browse files

Merge "Close the Drawer on BACK button if the Drawer is opened"

parents bb74c5f1 c95be4fb
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -702,6 +702,15 @@ public class SettingsActivity extends Activity
        return mFirstHeader;
    }

    @Override
    public void onBackPressed() {
        if (mDrawerLayout.isDrawerOpen(mDrawer)) {
            mDrawerLayout.closeDrawer(mDrawer);
            return;
        }
        super.onBackPressed();
    }

    @Override
    public void onBackStackChanged() {
        setTitleFromBackStack();