android: use getReactApplicationContext instead of getCurrentActivity (#143)
This commit is contained in:
parent
554701f5be
commit
e98c057da2
|
@ -203,7 +203,7 @@ public class KeychainModule extends ReactContextBaseJavaModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isFingerprintAuthAvailable() {
|
private boolean isFingerprintAuthAvailable() {
|
||||||
return DeviceAvailability.isFingerprintAuthAvailable(getCurrentActivity());
|
return DeviceAvailability.isFingerprintAuthAvailable(getReactApplicationContext());
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
Loading…
Reference in New Issue