Browse Source

Fix drawer back arrow

Mario Danic 8 năm trước cách đây
mục cha
commit
3273ad88bb
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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);
         }
     }