Browse Source

Cancelling a download in gallery finishes the gallery

David A. Velasco 12 years ago
parent
commit
75ae57b6d3
1 changed files with 3 additions and 0 deletions
  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;
             }