Open downloaded files with just click on the list of files
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / FileDisplayActivity.java
index 1c5cb38..cfe5b8e 100644 (file)
@@ -908,9 +908,9 @@ public class FileDisplayActivity extends FileActivity implements
                     
                 }
                 
-            } else if (file.isDown()) {
-                // details view
-                startDetails(file, onOrientationChange);
+            } else if (file.isDown() && !onOrientationChange) {
+                openFile(file);
+                
             } else {
                 startDownloadForPreview(file, onOrientationChange);
             }