fix #1230
authortobiasKaminsky <tobias@kaminsky.me>
Sat, 31 Oct 2015 10:03:15 +0000 (11:03 +0100)
committertobiasKaminsky <tobias@kaminsky.me>
Sat, 31 Oct 2015 10:03:15 +0000 (11:03 +0100)
src/com/owncloud/android/ui/fragment/OCFileListFragment.java

index 091549a..8b37f89 100644 (file)
@@ -223,10 +223,11 @@ public class OCFileListFragment extends ExtendedListFragment {
                     } else {
                         mContainerActivity.getFileOperationsHelper().openFile(file);
                     }
-                    
+                } else {
+                    // automatic download, preview on finish
+                    ((FileDisplayActivity) mContainerActivity).startDownloadForPreview(file);
                 }
             }
-            
         } else {
             Log_OC.d(TAG, "Null object in ListAdapter!!");
         }