Skip to content

Commit

Permalink
remove: ACCESS_MEDIA_LOCATION
Browse files Browse the repository at this point in the history
  • Loading branch information
gowtham.balamurugan committed Jan 9, 2024
1 parent de8c5f4 commit 6b6a5e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />

<application>
<activity android:name=".ui.ActVideoTrimmer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,11 @@ private boolean checkStoragePermission() {
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
{
return checkPermission(
Manifest.permission.READ_MEDIA_VIDEO, Manifest.permission.ACCESS_MEDIA_LOCATION);
Manifest.permission.READ_MEDIA_VIDEO);
}
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
return checkPermission(
Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.ACCESS_MEDIA_LOCATION);
Manifest.permission.READ_EXTERNAL_STORAGE);
} else
return checkPermission(Manifest.permission.READ_EXTERNAL_STORAGE);

Expand Down

0 comments on commit 6b6a5e7

Please sign in to comment.