API: Return metadata only for v4 api clients
This commit is contained in:
@@ -428,9 +428,11 @@ public class OpenPgpService extends RemoteService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OpenPgpMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) == 4) {
|
||||||
if (metadata != null) {
|
OpenPgpMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
||||||
result.putExtra(OpenPgpApi.RESULT_METADATA, metadata);
|
if (metadata != null) {
|
||||||
|
result.putExtra(OpenPgpApi.RESULT_METADATA, metadata);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user