From c2669ed6d9b6568074356a4268a0d226ff01c5d3 Mon Sep 17 00:00:00 2001 From: Odd Christer Brovig Date: Wed, 4 Sep 2019 13:42:33 +0200 Subject: [PATCH] Sets fields used in inner anonymous classes as final --- src/android/SecureStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {