Skip to content

Commit

Permalink
fix key upload after certification (hopefully?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valodim committed Sep 12, 2014
1 parent 4e834d7 commit 40c81c9
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -50,7 +50,6 @@
import org.sufficientlysecure.keychain.R;
import org.sufficientlysecure.keychain.helper.Preferences;
import org.sufficientlysecure.keychain.pgp.PgpKeyHelper;
import org.sufficientlysecure.keychain.provider.KeychainContract;
import org.sufficientlysecure.keychain.provider.KeychainContract.KeyRings;
import org.sufficientlysecure.keychain.provider.KeychainContract.UserIds;
import org.sufficientlysecure.keychain.service.KeychainIntentService;
Expand Down Expand Up @@ -335,14 +334,12 @@ public void handleMessage(Message message) {
Intent intent = new Intent();
intent.putExtra(OperationResultParcel.EXTRA_RESULT, result);
mActivity.setResult(CertifyKeyActivity.RESULT_OK, intent);
mActivity.finish();

// check if we need to send the key to the server or not
if (mUploadKeyCheckbox.isChecked()) {
// upload the newly signed key to the keyserver
uploadKey();
} else {
mActivity.setResult(CertifyKeyActivity.RESULT_OK);
mActivity.finish();
}
}
Expand All @@ -367,7 +364,7 @@ private void uploadKey() {
intent.setAction(KeychainIntentService.ACTION_UPLOAD_KEYRING);

// set data uri as path to keyring
Uri blobUri = KeychainContract.KeyRingData.buildPublicKeyRingUri(mDataUri);
Uri blobUri = KeyRings.buildUnifiedKeyRingUri(mDataUri);
intent.setData(blobUri);

// fill values for this action
Expand Down

0 comments on commit 40c81c9

Please sign in to comment.