mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2024-12-23 23:42:30 +01:00
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
Block a user