mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Delete photo tmp files only
This commit is contained in:
parent
e9d4c9afbe
commit
8656f927d3
1 changed files with 3 additions and 1 deletions
|
@ -4362,7 +4362,9 @@ public class FragmentCompose extends FragmentBase {
|
||||||
|
|
||||||
db.attachment().setDownloaded(attachment.id, size);
|
db.attachment().setDownloaded(attachment.id, size);
|
||||||
|
|
||||||
if (BuildConfig.APPLICATION_ID.equals(uri.getAuthority())) {
|
if (BuildConfig.APPLICATION_ID.equals(uri.getAuthority()) &&
|
||||||
|
uri.getPathSegments().size() > 0 &&
|
||||||
|
"photo".equals(uri.getPathSegments().get(0))) {
|
||||||
// content://eu.faircode.email/photo/nnn.jpg
|
// content://eu.faircode.email/photo/nnn.jpg
|
||||||
File tmp = new File(context.getFilesDir(), uri.getPath());
|
File tmp = new File(context.getFilesDir(), uri.getPath());
|
||||||
Log.i("Deleting " + tmp);
|
Log.i("Deleting " + tmp);
|
||||||
|
|
Loading…
Reference in a new issue