Skip to content

Commit

Permalink
Not checking isExternalStorageLegacy since we don't necessarily write…
Browse files Browse the repository at this point in the history
… anything
  • Loading branch information
ranjith-zuper committed Oct 22, 2023
1 parent 51d7a51 commit cfbf290
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Feb 14 17:02:05 WIB 2021
#Sun Oct 22 10:52:59 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ class ImagePickerFragment : Fragment() {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ->
arrayOf(Manifest.permission.READ_MEDIA_IMAGES, Manifest.permission.READ_MEDIA_VIDEO)

Build.VERSION.SDK_INT < Build.VERSION_CODES.Q
|| Environment.isExternalStorageLegacy() -> arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE)
Build.VERSION.SDK_INT < Build.VERSION_CODES.Q -> arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE)

else -> arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE)
}
Expand Down

0 comments on commit cfbf290

Please sign in to comment.