From: David A. Velasco Date: Tue, 7 May 2013 12:25:48 +0000 (+0200) Subject: Removed unnecessary code for showing progress circle after creation of first account X-Git-Tag: oc-android-1.4.3~26^2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/fe159af4eaeb43970a6b2a2b2830c9ff19297236?ds=inline;hp=--cc Removed unnecessary code for showing progress circle after creation of first account --- fe159af4eaeb43970a6b2a2b2830c9ff19297236 diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 108fce19..c62a28d5 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -116,7 +116,6 @@ public class FileDisplayActivity extends FileActivity implements private OCFileListFragment mFileList; private boolean mDualPane; - private boolean mBackFromCreatingFirstAccount; public static final int DIALOG_SHORT_WAIT = 0; private static final int DIALOG_CHOOSE_UPLOAD_SOURCE = 1; @@ -195,8 +194,6 @@ public class FileDisplayActivity extends FileActivity implements actionBar.setListNavigationCallbacks(mDirectories, this); setSupportProgressBarIndeterminateVisibility(false); // always AFTER setContentView(...) ; to workaround bug in its implementation - mBackFromCreatingFirstAccount = false; - Log_OC.d(TAG, "onCreate() end"); } @@ -733,13 +730,6 @@ public class FileDisplayActivity extends FileActivity implements setFile(currentDir); setSupportProgressBarIndeterminateVisibility(inProgress); - if (mBackFromCreatingFirstAccount) { - // awful patch to fix problem with visibility of progress circle with the first refresh of the first account - // TODO - kill this Activity when the first account has to be created instead of stack the account creation on it - getSupportActionBar().hide(); - getSupportActionBar().show(); - mBackFromCreatingFirstAccount = false; - } removeStickyBroadcast(intent); }