Grant access to right key id after generation

This commit is contained in:
Vincent Breitmoser
2018-07-02 17:07:55 +02:00
parent 4517d2a7f5
commit 5e2330c63f

View File

@@ -221,7 +221,7 @@ class RemoteSelectIdentityKeyPresenter {
void onImportOpSuccess(ImportKeyResult result) {
long importedMasterKeyId = result.getImportedMasterKeyIds()[0];
apiAppDao.insertApiApp(apiApp);
apiAppDao.addAllowedKeyIdForApp(apiApp.package_name(), selectedMasterKeyId);
apiAppDao.addAllowedKeyIdForApp(apiApp.package_name(), importedMasterKeyId);
view.finishAndReturn(importedMasterKeyId);
}