diff --git a/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.java b/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.java index 56e358b6b6..e7a4fe5042 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FolderPickerActivity.java +++ b/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