Browse Source

Fix drawer back arrow

Mario Danic 8 years ago
parent
commit
3273ad88bb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/com/owncloud/android/ui/activity/DrawerActivity.java

+ 3 - 1
src/com/owncloud/android/ui/activity/DrawerActivity.java

@@ -507,8 +507,10 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
         super.updateActionBarTitleAndHomeButton(chosenFile);
 
         /// set home button properties
-        if (mDrawerToggle != null) {
+        if (mDrawerToggle != null && chosenFile != null) {
             mDrawerToggle.setDrawerIndicatorEnabled(isRoot(chosenFile));
+        } else {
+            mDrawerToggle.setDrawerIndicatorEnabled(false);
         }
     }