make it plain text
This commit is contained in:
parent
a58d0a7c90
commit
fe43e9c8f3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue