mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Confirm show images
This commit is contained in:
parent
f2352fccb1
commit
35c0db3c24
2 changed files with 16 additions and 6 deletions
|
@ -624,13 +624,22 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
|
|||
.show();
|
||||
}
|
||||
|
||||
private void onShowImages(EntityMessage message) {
|
||||
properties.setImages(message.id, true);
|
||||
btnImages.setEnabled(false);
|
||||
private void onShowImages(final EntityMessage message) {
|
||||
new DialogBuilderLifecycle(context, owner)
|
||||
.setMessage(R.string.title_ask_show_image)
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
properties.setImages(message.id, true);
|
||||
btnImages.setEnabled(false);
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putSerializable("message", message);
|
||||
bodyTask.load(context, owner, args);
|
||||
Bundle args = new Bundle();
|
||||
args.putSerializable("message", message);
|
||||
bodyTask.load(context, owner, args);
|
||||
}
|
||||
})
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show();
|
||||
}
|
||||
|
||||
private SimpleTask<Spanned> bodyTask = new SimpleTask<Spanned>() {
|
||||
|
|
|
@ -224,6 +224,7 @@
|
|||
<string name="title_ask_discard">Discard draft?</string>
|
||||
<string name="title_ask_spam">Report message as spam?</string>
|
||||
<string name="title_ask_show_html">Showing the original message can leak privacy sensitive information</string>
|
||||
<string name="title_ask_show_image">Showing images can leak privacy sensitive information</string>
|
||||
<string name="title_fix">Fix</string>
|
||||
|
||||
<string name="title_compose">Compose</string>
|
||||
|
|
Loading…
Reference in a new issue