Merge pull request #2902 from kiwix/Issue#2901

Hide manage external storage permission from settings in play store build
This commit is contained in:
Kelson 2022-07-11 16:18:13 +02:00 committed by GitHub
commit 52f7002ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ class KiwixPrefsFragment : CorePrefsFragment() {
private fun setMangeExternalStoragePermission() {
val permissionPref = findPreference<Preference>(PREF_MANAGE_EXTERNAL_STORAGE_PERMISSION)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && !sharedPreferenceUtil.isPlayStoreBuild) {
showPermissionPreference()
val externalStorageManager = Environment.isExternalStorageManager()
if (externalStorageManager) {