mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-27 19:26:26 +02:00
Image editor: fixed file size
This commit is contained in:
@@ -126,6 +126,8 @@ public class FragmentDialogEditImage extends FragmentDialogBase {
|
||||
bm.compress(Bitmap.CompressFormat.PNG, ImageHelper.DEFAULT_PNG_COMPRESSION, os);
|
||||
}
|
||||
|
||||
long len = file.length();
|
||||
|
||||
if (attachment.name != null) {
|
||||
int index = attachment.name.lastIndexOf(".");
|
||||
if (index > 0) {
|
||||
@@ -139,7 +141,7 @@ public class FragmentDialogEditImage extends FragmentDialogBase {
|
||||
}
|
||||
}
|
||||
|
||||
db.attachment().setName(id, attachment.name, "image/png", file.length());
|
||||
db.attachment().setName(id, attachment.name, "image/png", len);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user