show txt preview when file contains text

This commit is contained in:
Georg Ehrke 2015-05-27 14:11:33 +02:00
parent 3de945d13d
commit bb676f2799
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class TXT extends Provider {
* {@inheritDoc}
*/
public function isAvailable(\OCP\Files\FileInfo $file) {
return $file->getSize() > 5;
return $file->getSize() > 0;
}
/**