diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java index 154861e0..bbf6fca6 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java @@ -112,8 +112,6 @@ public class MainActivity extends SyncthingActivity case STARTING: break; case ACTIVE: - mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); - // Check if the usage reporting minimum delay passed by. Boolean usageReportingDelayPassed = (new Date().getTime() > getFirstStartTime() + USAGE_REPORTING_DIALOG_DELAY); RestApi restApi = getApi(); @@ -192,7 +190,7 @@ public class MainActivity extends SyncthingActivity fm.beginTransaction().replace(R.id.drawer, mDrawerFragment).commit(); mDrawerToggle = new Toggle(this, mDrawerLayout); - mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); + mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); mDrawerLayout.addDrawerListener(mDrawerToggle); setOptimalDrawerWidth(findViewById(R.id.drawer));