Skip to content

Commit

Permalink
Sets fields used in inner anonymous classes as final
Browse files Browse the repository at this point in the history
  • Loading branch information
oddcb committed Sep 4, 2019
1 parent e60d3a6 commit c2669ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/SecureStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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() {
Expand Down

0 comments on commit c2669ed

Please sign in to comment.