From c29f359f0b18d6adcc3f3c7d33a73c6ca7f80d7c Mon Sep 17 00:00:00 2001 From: Steppschuh Date: Mon, 22 Feb 2021 08:58:52 +0100 Subject: [PATCH] Adjusted affected versions to include Android M --- .../nexenio/rxkeystore/provider/cipher/BaseCipherProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rxkeystore/src/main/java/com/nexenio/rxkeystore/provider/cipher/BaseCipherProvider.java b/rxkeystore/src/main/java/com/nexenio/rxkeystore/provider/cipher/BaseCipherProvider.java index b7e4287..551bfe6 100644 --- a/rxkeystore/src/main/java/com/nexenio/rxkeystore/provider/cipher/BaseCipherProvider.java +++ b/rxkeystore/src/main/java/com/nexenio/rxkeystore/provider/cipher/BaseCipherProvider.java @@ -77,7 +77,7 @@ protected Single getCipherInstance() { // due to an issue on older Android SDK versions, we need to use the default provider // when requesting a cipher instance instead of the AndroidKeyStore provider. // See https://github.com/neXenio/RxKeyStore/issues/23 - boolean isAffectedAndroidVersion = Build.VERSION.SDK_INT < Build.VERSION_CODES.M; + boolean isAffectedAndroidVersion = Build.VERSION.SDK_INT <= Build.VERSION_CODES.M; boolean isAffectedProvider = rxKeyStore.getProvider().equals(RxKeyStore.PROVIDER_ANDROID_KEY_STORE); useDefaultProvider = isAffectedAndroidVersion && isAffectedProvider; }