Skip to content

Commit

Permalink
fix balanceUpdate, fix crash on fingerprint service not found, b 247
Browse files Browse the repository at this point in the history
  • Loading branch information
MIPPL committed Nov 3, 2019
1 parent 7efa8dc commit f256959
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId = 'com.wagerrwallet'
minSdkVersion 23
targetSdkVersion 28
versionCode 246
versionName "246"
versionCode 247
versionName "247"
multiDexEnabled true

// Similar to other properties in the defaultConfig block,
Expand Down
8 changes: 6 additions & 2 deletions app/src/main/java/com/wagerrwallet/tools/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ public static byte[] hexToBytes(String s) {

public static boolean isFingerprintEnrolled(Context app) {
FingerprintManager fingerprintManager = (FingerprintManager) app.getSystemService(FINGERPRINT_SERVICE);
// Device doesn't support fingerprint authentication
return ActivityCompat.checkSelfPermission(app, Manifest.permission.USE_FINGERPRINT) == PackageManager.PERMISSION_GRANTED && fingerprintManager.isHardwareDetected() && fingerprintManager.hasEnrolledFingerprints();
if (fingerprintManager==null) { // Device doesn't support fingerprint authentication
return false;
}
else {
return ActivityCompat.checkSelfPermission(app, Manifest.permission.USE_FINGERPRINT) == PackageManager.PERMISSION_GRANTED && fingerprintManager.isHardwareDetected() && fingerprintManager.hasEnrolledFingerprints();
}
}

public static boolean isFingerprintAvailable(Context app) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/jni/breadwallet-core
Submodule breadwallet-core updated 1 files
+8 −1 BRWallet.c

0 comments on commit f256959

Please sign in to comment.