[Android] Make the AllAccessPermissionDialog always show the "never ask again" checkbox
Nicolas Pomepuy
git at videolan.org
Mon Jun 20 12:17:09 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jun 20 13:33:31 2022 +0200| [6210d8cfd5639cf48b14f59624517642139ba379] | committer: Duncan McNamara
Make the AllAccessPermissionDialog always show the "never ask again" checkbox
> https://code.videolan.org/videolan/vlc-android/commit/6210d8cfd5639cf48b14f59624517642139ba379
---
.../src/org/videolan/vlc/gui/dialogs/AllAccessPermissionDialog.kt | 3 ---
1 file changed, 3 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/AllAccessPermissionDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/AllAccessPermissionDialog.kt
index e833a5396..686f2a531 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/AllAccessPermissionDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/AllAccessPermissionDialog.kt
@@ -34,7 +34,6 @@ import kotlinx.coroutines.launch
import org.videolan.tools.PERMISSION_NEVER_ASK
import org.videolan.tools.Settings
import org.videolan.tools.putSingle
-import org.videolan.tools.setGone
import org.videolan.vlc.R
import org.videolan.vlc.gui.helpers.hf.StoragePermissionsDelegate.Companion.getStoragePermission
@@ -61,8 +60,6 @@ class AllAccessPermissionDialog : VLCBottomSheetDialogFragment() {
grantAllAccessButton = view.findViewById(R.id.grant_all_access_button)
neverAskAgain = view.findViewById(R.id.never_ask_again)
val settings = Settings.getInstance(requireActivity())
- if (!settings.getBoolean("permission_already_asked", false)) neverAskAgain.setGone()
- settings.putSingle("permission_already_asked", true)
grantAllAccessButton.setOnClickListener {
lifecycleScope.launch { requireActivity().getStoragePermission(withDialog = false) }
dismiss()
More information about the Android
mailing list