update support libraries

This commit is contained in:
Phillip Thelen 2016-08-19 13:51:46 +02:00
parent a954f481d9
commit c20d79120b
2 changed files with 13 additions and 8 deletions

View file

@ -71,11 +71,11 @@ dependencies {
compile('com.mikepenz:materialdrawer:5.3.6@aar') {
transitive = true
}
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
compile 'com.android.support:gridlayout-v7:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:preference-v14:24.1.1'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.android.support:gridlayout-v7:24.2.0'
compile 'com.android.support:recyclerview-v7:24.2.0'
compile 'com.android.support:preference-v14:24.2.0'
compile 'com.android.support:multidex:1.0.1'
// Image Loading/Caching
@ -131,7 +131,6 @@ dependencies {
exclude module: 'bolts-android'
}
//Tests
compile 'com.android.support:appcompat-v7:24.1.1'
testCompile "junit:junit:4.10"
testCompile "org.assertj:assertj-core:1.7.0"
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
@ -151,7 +150,7 @@ dependencies {
android {
compileSdkVersion 24
buildToolsVersion "23.0.3"
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.habitrpg.android.habitica"

View file

@ -1,5 +1,7 @@
package com.habitrpg.android.habitica.helpers;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import android.app.Dialog;
import android.content.Context;
import android.content.SharedPreferences;
@ -108,7 +110,11 @@ public class QrCodeManager {
return;
}
Bitmap myBitmap = QRCode.from(this.content).withColor(0xFF432874, 0xFFFFFFFF).withSize(400, 400).bitmap();
Bitmap myBitmap = QRCode.from(this.content)
.withErrorCorrection(ErrorCorrectionLevel.H)
.withColor(0xFF432874, 0x00FFFFFF)
.withSize(400, 400)
.bitmap();
qrCodeImageView.setImageBitmap(myBitmap);
}