Change encryption feedback

pull/190/head
M66B 4 years ago
parent 681fd86ebd
commit be5d6f7b3b

@ -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…
Cancel
Save