make it plain text

This commit is contained in:
tibbi 2016-07-14 12:45:05 +02:00
parent a58d0a7c90
commit fe43e9c8f3

View File

@ -142,7 +142,7 @@ public class ItemsFragment extends android.support.v4.app.Fragment
final File file = new File(path);
String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(Utils.getFileExtension(path));
if (mimeType == null)
mimeType = "text/*";
mimeType = "text/plain";
final Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file), mimeType);