mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 11:35:07 -05:00
URI is transported in intents data not extra.
This commit is contained in:
parent
58b22d1213
commit
2f0075e043
@ -1002,8 +1002,8 @@ public class EncryptActivity extends DrawerActivity {
|
||||
|
||||
case Id.request.secret_keys: {
|
||||
if (resultCode == RESULT_OK) {
|
||||
Bundle bundle = data.getExtras();
|
||||
mSecretKeyId = bundle.getLong(SelectSecretKeyActivity.RESULT_EXTRA_MASTER_KEY_ID);
|
||||
Uri uri_master_key = data.getData();
|
||||
mSecretKeyId = Long.valueOf(uri_master_key.getLastPathSegment());
|
||||
} else {
|
||||
mSecretKeyId = Id.key.none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user