Change encryption feedback

This commit is contained in:
M66B 2020-11-25 20:37:08 +01:00
parent 681fd86ebd
commit be5d6f7b3b
1 changed files with 12 additions and 0 deletions

View File

@ -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);