Merge remote-tracking branch 'origin/gradleWithInternalDependency' into us4_view_text...
[pub/Android/ownCloud.git] / src / com / owncloud / android / datamodel / OCFile.java
index d568ea3..5e1bd5f 100644 (file)
@@ -541,8 +541,7 @@ public class OCFile implements Parcelable, Comparable<OCFile> {
      * @return 'True' if the file is simple text (e.g. not application-dependent, like .doc or .docx)
      */
     public boolean isText() {
-        return !isFolder() && !isAudio() && !isVideo() && !isImage() && ((mMimeType != null && mMimeType.startsWith("text/")) ||
-                getMimeTypeFromName().startsWith("text/"));
+        return ((mMimeType != null && mMimeType.startsWith("text/")) || getMimeTypeFromName().startsWith("text/"));
     }
 
     public String getMimeTypeFromName() {