removeStickyBroadcast(intent);
Log_OC.d(TAG, "Setting progress visibility to " + mSyncInProgress);
setSupportProgressBarIndeterminateVisibility(mSyncInProgress /*|| mRefreshSharesInProgress*/);
+
+ if (mSyncInProgress) {
+ getListOfFilesFragment().showSwipeProgress();
+
+ } else {
+ getListOfFilesFragment().hideSwipeProgress();
+ }
}
if (synchResult != null) {
public void disableSwipe() {
mRefreshLayout.setEnabled(false);
}
+
+ /**
+ * It shows the SwipeRefreshLayout progress
+ */
+ public void showSwipeProgress() {
+ mRefreshLayout.setRefreshing(true);
+ }
+
+ /**
+ * It shows the SwipeRefreshLayout progress
+ */
+ public void hideSwipeProgress() {
+ mRefreshLayout.setRefreshing(false);
+ }
}
import android.app.Activity;
import android.os.Bundle;
-import android.support.v4.widget.SwipeRefreshLayout;
import android.view.ContextMenu;
import android.view.MenuInflater;
import android.view.MenuItem;
mFile = directory;
}
}
+
+
+ @Override
+ public void onRefresh() {
+ super.onRefresh();
+
+ if (mFile != null) {
+ listDirectory(mFile);
+
+ ((FileDisplayActivity)mContainerActivity).startSyncFolderOperation(mFile);
+ }
+ }
+
+
}