api: ACTION_GET_KEY selects by any subkey, rather than just master key id

This commit is contained in:
Vincent Breitmoser
2016-05-04 11:36:55 +02:00
parent 20194107e6
commit 4c063ebe46

View File

@@ -621,7 +621,8 @@ public class OpenPgpService extends Service {
try {
// try to find key, throws NotFoundException if not in db!
CanonicalizedPublicKeyRing keyRing =
mProviderHelper.getCanonicalizedPublicKeyRing(masterKeyId);
mProviderHelper.getCanonicalizedPublicKeyRing(
KeyRings.buildUnifiedKeyRingsFindBySubkeyUri(masterKeyId));
Intent result = new Intent();
result.putExtra(OpenPgpApi.RESULT_CODE, OpenPgpApi.RESULT_CODE_SUCCESS);