Browse Source

move order

tobiaskaminsky 7 years ago
parent
commit
f3be3ca91c

+ 5 - 5
src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.java

@@ -102,11 +102,6 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
 
         // Action bar setup
         setupToolbar();
-
-        if (getSupportActionBar() != null) {
-            getSupportActionBar().setDisplayShowTitleEnabled(true);
-            getSupportActionBar().setTitle(caption);
-        }
         
         if (getIntent().getStringExtra(EXTRA_ACTION) != null) {
             caption = getIntent().getStringExtra(EXTRA_ACTION);
@@ -114,6 +109,11 @@ public class FolderPickerActivity extends FileActivity implements FileFragment.C
             caption = ThemeUtils.getDefaultDisplayNameForRootFolder();
         }
 
+        if (getSupportActionBar() != null) {
+            getSupportActionBar().setDisplayShowTitleEnabled(true);
+            getSupportActionBar().setTitle(caption);
+        }
+
         setIndeterminate(mSyncInProgress);
         // always AFTER setContentView(...) ; to work around bug in its implementation