setContentView(R.layout.no_account_available);\r
getSupportActionBar().setNavigationMode(ActionBar.DISPLAY_SHOW_TITLE);\r
findViewById(R.id.setup_account).setOnClickListener(this);\r
- \r
+\r
+ setSupportProgressBarIndeterminateVisibility(false);\r
+\r
Intent intent = new Intent(android.provider.Settings.ACTION_ADD_ACCOUNT);\r
intent.putExtra(android.provider.Settings.EXTRA_AUTHORITIES, new String[] { AccountAuthenticator.AUTH_TOKEN_TYPE });\r
startActivity(intent); // although the code is here, the activity won't be created until this.onStart() and this.onResume() are finished;\r
mForcedLoginToCreateFirstAccount = true;\r
}\r
\r
- setSupportProgressBarIndeterminateVisibility(false);\r
Log.i(getClass().toString(), "onCreate() end");\r
}\r
\r
break;\r
}\r
case R.id.startSync: {\r
- // This could be interesting\r
- //ContentResolver.cancelSync(null, "org.owncloud"); // cancel the current synchronizations of any other ownCloud account\r
+ ContentResolver.cancelSync(null, "org.owncloud"); // cancel the current synchronizations of any ownCloud account\r
Bundle bundle = new Bundle();\r
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\r
ContentResolver.requestSync(\r
transaction.replace(R.id.file_details_container, new FileDetailFragment(null, null)); // empty FileDetailFragment\r
transaction.commit();\r
}\r
-\r
+ setSupportProgressBarIndeterminateVisibility(false);\r
}\r
\r
\r