fallback if server does not support video thumbnails
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / activity / FileActivity.java
index c37477c..19960e3 100644 (file)
@@ -411,10 +411,13 @@ public class FileActivity extends ActionBarActivity
                 title = mFile.getFileName();
             }
 
-        } else {
+        } else if (chosenFile.getParentId() != 0){
             // chosenFile determines the title, instead of mFile
             title = chosenFile.getFileName();
             inRoot = false;
+
+        } else{
+            inRoot = true;
         }
 
         /// set the chosen title