mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-25 16:01:52 -05:00
Merge pull request #460 from honnel/uri-for-sign
URI is transported in intents data not extra. #459
This commit is contained in:
commit
81624aa648
@ -1002,8 +1002,8 @@ public class EncryptActivity extends DrawerActivity {
|
|||||||
|
|
||||||
case Id.request.secret_keys: {
|
case Id.request.secret_keys: {
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
Bundle bundle = data.getExtras();
|
Uri uri_master_key = data.getData();
|
||||||
mSecretKeyId = bundle.getLong(SelectSecretKeyActivity.RESULT_EXTRA_MASTER_KEY_ID);
|
mSecretKeyId = Long.valueOf(uri_master_key.getLastPathSegment());
|
||||||
} else {
|
} else {
|
||||||
mSecretKeyId = Id.key.none;
|
mSecretKeyId = Id.key.none;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user