From 5a3439aa928f6378e56ff4210a7d12c4213afdd6 Mon Sep 17 00:00:00 2001 From: Alexis THOMAS Date: Wed, 18 Dec 2024 18:30:12 +0100 Subject: [PATCH] feat(android): Field 'storagePermissions' may be 'final' (#281) --- src/android/Capture.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/android/Capture.java b/src/android/Capture.java index f321248f..c915c392 100644 --- a/src/android/Capture.java +++ b/src/android/Capture.java @@ -76,11 +76,10 @@ public class Capture extends CordovaPlugin { private static final int CAPTURE_PERMISSION_DENIED = 4; private static final int CAPTURE_NOT_SUPPORTED = 20; - private static String[] storagePermissions; + private static final String[] storagePermissions; static { if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - storagePermissions = new String[]{ - }; + storagePermissions = new String[] {}; } else { storagePermissions = new String[] { Manifest.permission.READ_EXTERNAL_STORAGE,