Bläddra i källkod

Home button shows an arrow when user is into a folder

masensio 10 år sedan
förälder
incheckning
3603c122ff
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      src/com/owncloud/android/ui/activity/FileActivity.java

+ 2 - 0
src/com/owncloud/android/ui/activity/FileActivity.java

@@ -388,8 +388,10 @@ public class FileActivity extends ActionBarActivity
         if (mFile.getParentId() == 0) {
         if (mFile.getParentId() == 0) {
             getSupportActionBar().setTitle(getString(
             getSupportActionBar().setTitle(getString(
                     R.string.default_display_name_for_root_folder));
                     R.string.default_display_name_for_root_folder));
+            mDrawerToggle.setDrawerIndicatorEnabled(true);
         } else {
         } else {
             getSupportActionBar().setTitle(mFile.getFileName().toString());
             getSupportActionBar().setTitle(mFile.getFileName().toString());
+            mDrawerToggle.setDrawerIndicatorEnabled(false);
         }
         }
     }
     }
     /**
     /**