android: use getReactApplicationContext instead of getCurrentActivity (#143)

This commit is contained in:
Johannes Kronmüller 2018-07-23 12:09:23 +02:00 committed by Vojtech Novak
parent 554701f5be
commit e98c057da2
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class KeychainModule extends ReactContextBaseJavaModule {
}
private boolean isFingerprintAuthAvailable() {
return DeviceAvailability.isFingerprintAuthAvailable(getCurrentActivity());
return DeviceAvailability.isFingerprintAuthAvailable(getReactApplicationContext());
}
@NonNull