Removed PGP sign key shortcut

Better check if the key exists ...
pull/205/head
M66B 4 years ago
parent 5cefd5d260
commit 3e5bcf8305

@ -3053,19 +3053,11 @@ public class FragmentCompose extends FragmentBase {
} }
} }
Intent result; // Call OpenPGP
if (OpenPgpApi.ACTION_GET_SIGN_KEY_ID.equals(data.getAction()) && identity.sign_key != null) { Log.i("Executing " + data.getAction());
// Short circuit Log.logExtras(data);
result = data; OpenPgpApi api = new OpenPgpApi(context, pgpService.getService());
result.putExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_SUCCESS); Intent result = api.executeApi(data, new FileInputStream(input), new FileOutputStream(output));
result.putExtra(OpenPgpApi.EXTRA_SIGN_KEY_ID, identity.sign_key);
} else {
// Call OpenPGP
Log.i("Executing " + data.getAction());
Log.logExtras(data);
OpenPgpApi api = new OpenPgpApi(context, pgpService.getService());
result = api.executeApi(data, new FileInputStream(input), new FileOutputStream(output));
}
// Process result // Process result
try { try {

Loading…
Cancel
Save