Simplification

pull/217/head
M66B 9 months ago
parent 03343b49d5
commit 8049e2dd58

@ -246,8 +246,7 @@ public class AdapterMedia extends RecyclerView.Adapter<AdapterMedia.ViewHolder>
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P &&
!"image/svg+xml".equals(type) && !"image/svg+xml".equalsIgnoreCase(type))
!"svg".equals(Helper.getExtension(file.getName())))
try { try {
return ImageHelper.getScaledDrawable(context, file, type, max); return ImageHelper.getScaledDrawable(context, file, type, max);
} catch (Throwable ex) { } catch (Throwable ex) {

Loading…
Cancel
Save