Simplification

pull/194/head
M66B 4 years ago
parent 350a089841
commit fa05849cb5

@ -1156,8 +1156,7 @@ public class Helper {
String extension = Helper.getExtension(filename); String extension = Helper.getExtension(filename);
if (extension != null) { if (extension != null) {
extension = extension.toLowerCase(Locale.ROOT); extension = extension.toLowerCase(Locale.ROOT);
type = MimeTypeMap.getSingleton() type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
.getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));
} }
if (TextUtils.isEmpty(type)) if (TextUtils.isEmpty(type))

Loading…
Cancel
Save