浏览代码

Cancelling a download in gallery finishes the gallery

David A. Velasco 12 年之前
父节点
当前提交
75ae57b6d3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/com/owncloud/android/ui/preview/FileDownloadFragment.java

+ 3 - 0
src/com/owncloud/android/ui/preview/FileDownloadFragment.java

@@ -223,12 +223,15 @@ public class FileDownloadFragment extends SherlockFragment implements OnClickLis
                 FileDownloaderBinder downloaderBinder = mContainerActivity.getFileDownloaderBinder();
                 if (downloaderBinder != null && downloaderBinder.isDownloading(mAccount, mFile)) {
                     downloaderBinder.cancel(mAccount, mFile);
+                    getActivity().finish(); // :)
+                    /*
                     leaveTransferProgress();
                     if (mFile.isDown()) {
                         setButtonsForDown();
                     } else {
                         setButtonsForRemote();
                     }
+                    */
                 }
                 break;
             }