mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Change encryption feedback
This commit is contained in:
parent
681fd86ebd
commit
be5d6f7b3b
1 changed files with 12 additions and 0 deletions
|
@ -1459,6 +1459,18 @@ public class FragmentCompose extends FragmentBase {
|
|||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, Void data) {
|
||||
int encrypt = args.getInt("encrypt");
|
||||
int[] values = getResources().getIntArray(R.array.encryptValues);
|
||||
String[] names = getResources().getStringArray(R.array.encryptNames);
|
||||
for (int i = 0; i < values.length; i++)
|
||||
if (values[i] == encrypt) {
|
||||
ToastEx.makeText(getContext(), names[i], Toast.LENGTH_LONG).show();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.unexpectedError(getParentFragmentManager(), ex);
|
||||
|
|
Loading…
Reference in a new issue