mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
#990 displaying path of stored file after successful storage.
This commit is contained in:
parent
2cc1d8265b
commit
3edb0cd79c
2 changed files with 8 additions and 2 deletions
|
@ -31,7 +31,7 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
|
|||
private static final int WRITE_ACCESS_FAILURE = 2;
|
||||
|
||||
private final WeakReference<Context> contextReference;
|
||||
|
||||
|
||||
public SaveAttachmentTask(Context context) {
|
||||
super(context,
|
||||
context.getResources().getString(R.string.one_moment),
|
||||
|
@ -63,7 +63,12 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
|
|||
if (directory == null) return new Pair<>(FAILURE, null);
|
||||
}
|
||||
}
|
||||
|
||||
final String displayDir = directory;
|
||||
Util.runOnMain(() -> {
|
||||
// Tell the user where the file went
|
||||
// "Saved to " + displayDir
|
||||
Toast.makeText(context, context.getString(R.string.exported_attachment_to, displayDir), Toast.LENGTH_LONG).show();
|
||||
});
|
||||
if (attachments.length > 1) return new Pair<>(SUCCESS, null);
|
||||
else return new Pair<>(SUCCESS, directory);
|
||||
} catch (NoExternalStorageException|IOException ioe) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue