From fe43e9c8f3637a4f4567259bcccae186b2b9cba7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jul 2016 12:45:05 +0200 Subject: [PATCH] make it plain text --- .../simplemobiletools/filemanager/fragments/ItemsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java b/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java index f5e0406c..c31d2be9 100644 --- a/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java +++ b/app/src/main/java/com/simplemobiletools/filemanager/fragments/ItemsFragment.java @@ -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);