|
@@ -145,7 +145,7 @@ public class DisplayUtils {
|
|
} else {
|
|
} else {
|
|
String [] parts = mimetype.split("/");
|
|
String [] parts = mimetype.split("/");
|
|
String type = parts[0];
|
|
String type = parts[0];
|
|
- String subtype = (parts.length > 0) ? parts[1] : "";
|
|
|
|
|
|
+ String subtype = (parts.length > 1) ? parts[1] : "";
|
|
|
|
|
|
if(TYPE_TXT.equals(type)) {
|
|
if(TYPE_TXT.equals(type)) {
|
|
return R.drawable.file_doc;
|
|
return R.drawable.file_doc;
|