You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2024/12/18 17:30:18 UTC
(cordova-plugin-media-capture) branch master updated: feat(android): Field 'storagePermissions' may be 'final' (#281)
This is an automated email from the ASF dual-hosted git repository.
normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-media-capture.git
The following commit(s) were added to refs/heads/master by this push:
new 5a3439a feat(android): Field 'storagePermissions' may be 'final' (#281)
5a3439a is described below
commit 5a3439aa928f6378e56ff4210a7d12c4213afdd6
Author: Alexis THOMAS <at...@users.noreply.github.com>
AuthorDate: Wed Dec 18 18:30:12 2024 +0100
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 f321248..c915c39 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,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org