Skip to content

Commit 6b6a5e7

Browse files
remove: ACCESS_MEDIA_LOCATION
1 parent de8c5f4 commit 6b6a5e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
33

44
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
5-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
6-
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
5+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
6+
android:maxSdkVersion="32" />
77

88
<application>
99
<activity android:name=".ui.ActVideoTrimmer"

library/src/main/java/com/gowtham/library/ui/ActVideoTrimmer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,11 @@ private boolean checkStoragePermission() {
700700
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
701701
{
702702
return checkPermission(
703-
Manifest.permission.READ_MEDIA_VIDEO, Manifest.permission.ACCESS_MEDIA_LOCATION);
703+
Manifest.permission.READ_MEDIA_VIDEO);
704704
}
705705
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
706706
return checkPermission(
707-
Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.ACCESS_MEDIA_LOCATION);
707+
Manifest.permission.READ_EXTERNAL_STORAGE);
708708
} else
709709
return checkPermission(Manifest.permission.READ_EXTERNAL_STORAGE);
710710

0 commit comments

Comments
 (0)