Skip to content

Commit 01431e7

Browse files
committed
Fixed keyguard authentication on Android < 4.3
1 parent 36c3c16 commit 01431e7

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.13.11]
5+
6+
### Fixed
7+
- Now tinting payment success image with snabble_primaryColor
8+
- Keyguard authentication on Android < 4.3
9+
410
## [0.13.10]
511

612
### Fixed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
}
2424

2525
project.ext {
26-
sdkVersion='0.13.10'
26+
sdkVersion='0.13.11'
2727
versionCode=1
2828

2929
compileSdkVersion=28

ui/src/main/java/io/snabble/sdk/ui/checkout/PaymentMethodView.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,20 @@ public void onClick(View v) {
159159
}
160160

161161
private void showSEPACardInput() {
162-
if(Snabble.getInstance().getUserPreferences().isRequiringKeyguardAuthenticationForPayment()
163-
&& KeyguardUtils.isDeviceSecure()) {
162+
if (Snabble.getInstance().getUserPreferences().isRequiringKeyguardAuthenticationForPayment()) {
163+
if(KeyguardUtils.isDeviceSecure()) {
164+
SnabbleUICallback callback = SnabbleUI.getUiCallback();
165+
if(callback != null) {
166+
callback.showSEPACardInput();
167+
}
168+
} else {
169+
showPaymentNotPossibleDialog();
170+
}
171+
} else {
164172
SnabbleUICallback callback = SnabbleUI.getUiCallback();
165173
if(callback != null) {
166174
callback.showSEPACardInput();
167175
}
168-
} else {
169-
showPaymentNotPossibleDialog();
170176
}
171177
}
172178

0 commit comments

Comments
 (0)