mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
8289258094
commit
d90e4d852f
|
@ -4981,8 +4981,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
if (TextUtils.isEmpty(name))
|
if (TextUtils.isEmpty(name))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
name = Helper.sanitizeFilename(name);
|
|
||||||
|
|
||||||
File source = EntityAttachment.getFile(context, id, prev);
|
File source = EntityAttachment.getFile(context, id, prev);
|
||||||
File target = EntityAttachment.getFile(context, id, name);
|
File target = EntityAttachment.getFile(context, id, name);
|
||||||
if (!source.renameTo(target))
|
if (!source.renameTo(target))
|
||||||
|
|
Loading…
Reference in New Issue