From e98c057da2a4ff57f10f8023ecb9a0aac13ed3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Kronm=C3=BCller?= Date: Mon, 23 Jul 2018 12:09:23 +0200 Subject: [PATCH] android: use getReactApplicationContext instead of getCurrentActivity (#143) --- android/src/main/java/com/oblador/keychain/KeychainModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/oblador/keychain/KeychainModule.java b/android/src/main/java/com/oblador/keychain/KeychainModule.java index 60f76b9..94b6c5e 100644 --- a/android/src/main/java/com/oblador/keychain/KeychainModule.java +++ b/android/src/main/java/com/oblador/keychain/KeychainModule.java @@ -203,7 +203,7 @@ public class KeychainModule extends ReactContextBaseJavaModule { } private boolean isFingerprintAuthAvailable() { - return DeviceAvailability.isFingerprintAuthAvailable(getCurrentActivity()); + return DeviceAvailability.isFingerprintAuthAvailable(getReactApplicationContext()); } @NonNull