Automatic download of previewable files in portrait mode
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / fragment / FileDetailFragment.java
index 85312b9..d9ee918 100644 (file)
@@ -833,6 +833,8 @@ public class FileDetailFragment extends SherlockFragment implements
                 if (mFile.getRemotePath().equals(downloadedRemotePath)) {\r
                     if (downloadWasFine) {\r
                         mFile = mStorageManager.getFileByPath(downloadedRemotePath);\r
+                        mContainerActivity.notifySuccessfulDownload(mFile);\r
+                        getActivity().removeStickyBroadcast(intent);\r
                     }\r
                     updateFileDetails(false);    // it updates the buttons; must be called although !downloadWasFine\r
                 }\r