浏览代码

revert this, although it will get removed by a different PR

tobiasKaminsky 8 年之前
父节点
当前提交
39bf45da64
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

+ 4 - 0
src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -250,6 +250,10 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
     public void onResume() {
         super.onResume();
 
+        if (remoteOperationAsyncTask != null) {
+            remoteOperationAsyncTask.cancel(true);
+        }
+
         if (getActivity() != null) {
             AnalyticsUtils.setCurrentScreenName(getActivity(), SCREEN_NAME, TAG);
         }