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

Commit 1774a27b authored by Anna Galusza's avatar Anna Galusza
Browse files

Allow the drawer to not be shown.

Change-Id: If616c6b801382c307fa7db85bed02a4b8cae6ea5
parent c7cbd7b2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -141,6 +141,16 @@ public class SettingsDrawerActivity extends Activity {
        mCategoryListeners.remove(listener);
    }

    public void setIsDrawerPresent(boolean isPresent) {
        if (isVisible) {
            mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
            updateDrawer();
        } else {
            mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
            mDrawerLayout = null;
        }
    }

    public void openDrawer() {
        if (mDrawerLayout != null) {
            mDrawerLayout.openDrawer(Gravity.START);