Merge branch 'develop' into pull_down_refresh
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / FileDisplayActivity.java
index 4babd9d..ee7d324 100644 (file)
@@ -922,6 +922,15 @@ FileFragment.ContainerActivity, OnNavigationListener, OnSslUntrustedCertListener
                         removeStickyBroadcast(intent);
                         Log_OC.d(TAG, "Setting progress visibility to " + mSyncInProgress);
                         setSupportProgressBarIndeterminateVisibility(mSyncInProgress /*|| mRefreshSharesInProgress*/);
+                        
+                        if (mSyncInProgress) {
+                            getListOfFilesFragment().disableSwipe();
+                            
+                        } else {
+                            getListOfFilesFragment().enableSwipe();
+                            getListOfFilesFragment().hideSwipeProgress();
+                        }
+                        
                 }
                 
                 if (synchResult != null) {