mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-07 01:35:00 -05:00
Fix QR Code URI
This commit is contained in:
parent
4e32459824
commit
20af0d3b2e
@ -417,7 +417,7 @@ public class ViewKeyActivity extends SherlockFragmentActivity implements
|
|||||||
byte[] fingerprintBlob = ProviderHelper.getFingerprint(this, dataUri);
|
byte[] fingerprintBlob = ProviderHelper.getFingerprint(this, dataUri);
|
||||||
String fingerprint = PgpKeyHelper.convertFingerprintToHex(fingerprintBlob, false);
|
String fingerprint = PgpKeyHelper.convertFingerprintToHex(fingerprintBlob, false);
|
||||||
|
|
||||||
content = Constants.FINGERPRINT_SCHEME + fingerprint;
|
content = Constants.FINGERPRINT_SCHEME + ":" + fingerprint;
|
||||||
} else {
|
} else {
|
||||||
// get public keyring as ascii armored string
|
// get public keyring as ascii armored string
|
||||||
long masterKeyId = ProviderHelper.getMasterKeyId(this, dataUri);
|
long masterKeyId = ProviderHelper.getMasterKeyId(this, dataUri);
|
||||||
|
@ -90,16 +90,14 @@ public class ShareQrCodeDialogFragment extends SherlockDialogFragment {
|
|||||||
|
|
||||||
String content = null;
|
String content = null;
|
||||||
if (mFingerprintOnly) {
|
if (mFingerprintOnly) {
|
||||||
|
alert.setPositiveButton(R.string.btn_okay, null);
|
||||||
|
|
||||||
byte[] fingerprintBlob = ProviderHelper.getFingerprint(getActivity(), dataUri);
|
byte[] fingerprintBlob = ProviderHelper.getFingerprint(getActivity(), dataUri);
|
||||||
String fingerprint = PgpKeyHelper.convertFingerprintToHex(fingerprintBlob, false);
|
String fingerprint = PgpKeyHelper.convertFingerprintToHex(fingerprintBlob, false);
|
||||||
|
|
||||||
mText.setText(getString(R.string.share_qr_code_dialog_fingerprint_text) + " " + fingerprint);
|
mText.setText(getString(R.string.share_qr_code_dialog_fingerprint_text) + " " + fingerprint);
|
||||||
content = Constants.FINGERPRINT_SCHEME + fingerprint;
|
|
||||||
|
|
||||||
Log.d(Constants.TAG, "content: " + content);
|
|
||||||
|
|
||||||
alert.setPositiveButton(R.string.btn_okay, null);
|
|
||||||
|
|
||||||
|
content = Constants.FINGERPRINT_SCHEME + ":" + fingerprint;
|
||||||
setQrCode(content);
|
setQrCode(content);
|
||||||
} else {
|
} else {
|
||||||
mText.setText(R.string.share_qr_code_dialog_start);
|
mText.setText(R.string.share_qr_code_dialog_start);
|
||||||
@ -107,7 +105,6 @@ public class ShareQrCodeDialogFragment extends SherlockDialogFragment {
|
|||||||
// TODO
|
// TODO
|
||||||
long masterKeyId = ProviderHelper.getMasterKeyId(getActivity(), dataUri);
|
long masterKeyId = ProviderHelper.getMasterKeyId(getActivity(), dataUri);
|
||||||
|
|
||||||
|
|
||||||
// get public keyring as ascii armored string
|
// get public keyring as ascii armored string
|
||||||
ArrayList<String> keyringArmored = ProviderHelper.getKeyRingsAsArmoredString(
|
ArrayList<String> keyringArmored = ProviderHelper.getKeyRingsAsArmoredString(
|
||||||
getActivity(), dataUri, new long[]{masterKeyId});
|
getActivity(), dataUri, new long[]{masterKeyId});
|
||||||
|
Loading…
Reference in New Issue
Block a user