From 2bc1878bebcde5767c227f13d7370fc573522287 Mon Sep 17 00:00:00 2001 From: Makito Date: Fri, 16 Jun 2017 22:15:16 +0800 Subject: [PATCH] Fixed the issue #18; --- .idea/misc.xml | 2 +- app/build.gradle | 4 ++-- .../com/github/sumimakito/awesomeqrsample/MainActivity.java | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fbb6828..5d19981 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/build.gradle b/app/build.gradle index d50b7ee..95f68ed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "com.github.sumimakito.awesomeqrsample" minSdkVersion 19 targetSdkVersion 25 - versionCode 10 - versionName "1.9" + versionCode 11 + versionName "1.10" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/com/github/sumimakito/awesomeqrsample/MainActivity.java b/app/src/main/java/com/github/sumimakito/awesomeqrsample/MainActivity.java index 3e04eb8..0d97afc 100644 --- a/app/src/main/java/com/github/sumimakito/awesomeqrsample/MainActivity.java +++ b/app/src/main/java/com/github/sumimakito/awesomeqrsample/MainActivity.java @@ -280,10 +280,11 @@ private void generate(final String contents, final int size, final int margin, f .renderAsync(new AwesomeQRCode.Callback() { @Override public void onRendered(AwesomeQRCode.Renderer renderer, final Bitmap bitmap) { + qrBitmap = bitmap; runOnUiThread(new Runnable() { @Override public void run() { - qrCodeImageView.setImageBitmap(bitmap); + qrCodeImageView.setImageBitmap(qrBitmap); configViewContainer.setVisibility(View.GONE); resultViewContainer.setVisibility(View.VISIBLE); if (progressDialog != null) progressDialog.dismiss();