mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Revert "Skip rendering large SVG media files"
This reverts commit 03343b49d5
.
This commit is contained in:
parent
8049e2dd58
commit
c4803086d3
1 changed files with 0 additions and 3 deletions
|
@ -83,7 +83,6 @@ public class AdapterMedia extends RecyclerView.Adapter<AdapterMedia.ViewHolder>
|
|||
private List<EntityAttachment> items = new ArrayList<>();
|
||||
|
||||
private static final int PDF_WIDTH = 120;
|
||||
private static final int MAX_SVG_FILE_SIZE = 1024 * 1024;
|
||||
|
||||
public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
|
||||
private final View view;
|
||||
|
@ -203,8 +202,6 @@ public class AdapterMedia extends RecyclerView.Adapter<AdapterMedia.ViewHolder>
|
|||
|
||||
if ("image/webp".equalsIgnoreCase(type) && !webp)
|
||||
return context.getDrawable(R.drawable.twotone_image_not_supported_24);
|
||||
if ("image/svg+xml".equalsIgnoreCase(type) && file.length() > MAX_SVG_FILE_SIZE)
|
||||
return context.getDrawable(R.drawable.twotone_image_not_supported_24);
|
||||
|
||||
try {
|
||||
BitmapFactory.Options options = new BitmapFactory.Options();
|
||||
|
|
Loading…
Add table
Reference in a new issue