aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2015-05-19 18:27:04 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2015-05-19 19:09:32 +0200
commit79b7cec94acfbba683e1c78d1576866c5fbd5d61 (patch)
treec81ec064d7a191ac1375fc1ec1d59812f4df6a04 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
parentb62ad4d79c1e90ca63dafcd0edece3bcb826b087 (diff)
downloadopen-keychain-79b7cec94acfbba683e1c78d1576866c5fbd5d61.tar.gz
open-keychain-79b7cec94acfbba683e1c78d1576866c5fbd5d61.tar.bz2
open-keychain-79b7cec94acfbba683e1c78d1576866c5fbd5d61.zip
Use Mode.ALPHANUMERIC for QR codes to save space
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
index 4237deff0..9968855f7 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
@@ -731,9 +731,12 @@ public class ViewKeyActivity extends BaseNfcActivity implements
AsyncTask<Void, Void, Bitmap> loadTask =
new AsyncTask<Void, Void, Bitmap>() {
protected Bitmap doInBackground(Void... unused) {
- String qrCodeContent = Constants.FINGERPRINT_SCHEME + ":" + fingerprint;
+ Uri uri = new Uri.Builder()
+ .scheme(Constants.FINGERPRINT_SCHEME)
+ .opaquePart(fingerprint)
+ .build();
// render with minimal size
- return QrCodeUtils.getQRCodeBitmap(qrCodeContent, 0);
+ return QrCodeUtils.getQRCodeBitmap(uri, 0);
}
protected void onPostExecute(Bitmap qrCode) {