mirror of https://github.com/M66B/FairEmail.git
Disable double confirm for delete trash/junk
This commit is contained in:
parent
5e5ba013b5
commit
a11d791c93
|
@ -3359,6 +3359,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
Bundle aargs = new Bundle();
|
Bundle aargs = new Bundle();
|
||||||
aargs.putString("question", getResources()
|
aargs.putString("question", getResources()
|
||||||
.getQuantityString(R.plurals.title_deleting_messages, ids.size(), ids.size()));
|
.getQuantityString(R.plurals.title_deleting_messages, ids.size(), ids.size()));
|
||||||
|
if (!EntityFolder.TRASH.equals(type) && !EntityFolder.JUNK.equals(type))
|
||||||
aargs.putString("confirm", getString(R.string.title_no_undo));
|
aargs.putString("confirm", getString(R.string.title_no_undo));
|
||||||
aargs.putLongArray("ids", Helper.toLongArray(ids));
|
aargs.putLongArray("ids", Helper.toLongArray(ids));
|
||||||
aargs.putBoolean("warning", true);
|
aargs.putBoolean("warning", true);
|
||||||
|
@ -3740,6 +3741,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
Bundle aargs = new Bundle();
|
Bundle aargs = new Bundle();
|
||||||
aargs.putString("question", getResources()
|
aargs.putString("question", getResources()
|
||||||
.getQuantityString(R.plurals.title_deleting_messages, ids.size(), ids.size()));
|
.getQuantityString(R.plurals.title_deleting_messages, ids.size(), ids.size()));
|
||||||
|
if (!EntityFolder.TRASH.equals(type) && !EntityFolder.JUNK.equals(type))
|
||||||
aargs.putString("confirm", getString(R.string.title_no_undo));
|
aargs.putString("confirm", getString(R.string.title_no_undo));
|
||||||
aargs.putLongArray("ids", Helper.toLongArray(ids));
|
aargs.putLongArray("ids", Helper.toLongArray(ids));
|
||||||
aargs.putBoolean("warning", true);
|
aargs.putBoolean("warning", true);
|
||||||
|
|
Loading…
Reference in New Issue