diff --git a/src/android/SecureStorage.java b/src/android/SecureStorage.java index 7d4976a1..9b59852d 100644 --- a/src/android/SecureStorage.java +++ b/src/android/SecureStorage.java @@ -222,7 +222,7 @@ private void initSuccess(CallbackContext context) { * @param description * @// TODO: 2019-07-08 Use BiometricPrompt#setDeviceCredentialAllowed for API 29+ */ - private void unlockCredentials(String title, String description) { + private void unlockCredentials(final String title, final String description) { cordova.getActivity().runOnUiThread(new Runnable() { public void run() { KeyguardManager keyguardManager = (KeyguardManager) (getContext().getSystemService(Context.KEYGUARD_SERVICE)); @@ -237,7 +237,7 @@ public void run() { * * @param userAuthenticationValidityDuration User authentication validity duration in seconds */ - private void generateEncryptionKeys(Integer userAuthenticationValidityDuration) { + private void generateEncryptionKeys(final Integer userAuthenticationValidityDuration) { if (generateKeysContext != null && !generateKeysContextRunning) { cordova.getThreadPool().execute(new Runnable() { public void run() {