Merge branch 'text_file_preview_pr_707_with_develop' of github.com:owncloud/android...
authormasensio <masensio@solidgear.es>
Wed, 2 Sep 2015 11:29:14 +0000 (13:29 +0200)
committermasensio <masensio@solidgear.es>
Wed, 2 Sep 2015 11:29:14 +0000 (13:29 +0200)
1  2 
src/com/owncloud/android/datamodel/OCFile.java

@@@ -548,14 -548,6 +548,6 @@@ public class OCFile implements Parcelab
                  getMimeTypeFromName().startsWith("image/"));
      }
  
-     /**
-      * @return 'True' if the file is simple text (e.g. not application-dependent, like .doc or .docx)
-      */
-     public boolean isText() {
-         return ((mMimeType != null && mMimeType.startsWith("text/")) ||
-                 getMimeTypeFromName().startsWith("text/"));
-     }
      public String getMimeTypeFromName() {
          String extension = "";
          int pos = mRemotePath.lastIndexOf('.');
          return (result != null) ? result : "";
      }
  
 +    /**
 +     * @return 'True' if the file is hidden
 +     */
 +    public boolean isHidden() {
 +        return getFileName().startsWith(".");
 +    }
 +
      public String getPermissions() {
          return mPermissions;
      }