Simplification

This commit is contained in:
M66B
2025-01-03 18:37:03 +01:00
parent 03343b49d5
commit 8049e2dd58

View File

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