From: David A. Velasco Date: Tue, 9 Apr 2013 09:17:28 +0000 (+0200) Subject: Patch to fix the lack of progress circle at the first sycnhronization of the first... X-Git-Tag: oc-android-1.4.3~40^2 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/7edc384f7eb5c469ebfcb82c0017f9d74335bace?ds=inline;hp=--cc Patch to fix the lack of progress circle at the first sycnhronization of the first-created account, in Android 2.x --- 7edc384f7eb5c469ebfcb82c0017f9d74335bace diff --git a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java index 7df1ecbb..45246fa7 100644 --- a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -121,6 +121,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements private OCFileListFragment mFileList; private boolean mDualPane; + private boolean mBackFromCreatingFirstAccount; private static final int DIALOG_SETUP_ACCOUNT = 0; private static final int DIALOG_CREATE_DIR = 1; @@ -215,6 +216,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements // show changelog, if needed //showChangeLog(); + mBackFromCreatingFirstAccount = false; Log.d(getClass().toString(), "onCreate() end"); } @@ -554,6 +556,7 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements if (mDualPane) { initFileDetailsInDualPane(); } + mBackFromCreatingFirstAccount = true; } // Listen for sync messages @@ -923,6 +926,13 @@ public class FileDisplayActivity extends SherlockFragmentActivity implements } 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); }