Still better for progress circle initialization: looks like apply it after setContent...
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 13 Jul 2012 09:14:10 +0000 (11:14 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 13 Jul 2012 09:14:10 +0000 (11:14 +0200)
src/eu/alefzero/owncloud/ui/activity/FileDisplayActivity.java

index 0cb9b50..7e62084 100644 (file)
@@ -142,14 +142,15 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements
             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
@@ -762,7 +763,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements
             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