[Android] Add the display settings to the safe mode
Nicolas Pomepuy
git at videolan.org
Wed Jul 12 08:30:37 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul 10 14:00:18 2023 +0200| [42acfbb3b5054f6b1c2428ee778f541ce80b5e47] | committer: Duncan McNamara
Add the display settings to the safe mode
> https://code.videolan.org/videolan/vlc-android/commit/42acfbb3b5054f6b1c2428ee778f541ce80b5e47
---
.../src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt
index 89a7cd5c5d..caff425048 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt
@@ -47,6 +47,7 @@ import org.videolan.resources.GROUP_VIDEOS_NONE
import org.videolan.tools.setGone
import org.videolan.vlc.R
import org.videolan.vlc.databinding.DialogDisplaySettingsBinding
+import org.videolan.vlc.gui.helpers.UiTools.showPinIfNeeded
import org.videolan.vlc.viewmodels.DisplaySettingsViewModel
import org.videolan.vlc.viewmodels.mobile.VideoGroupingType
import org.videolan.vlc.viewmodels.mobile.VideosViewModel
@@ -99,6 +100,7 @@ class DisplaySettingsDialog : VLCBottomSheetDialogFragment() {
override fun initialFocusedView(): View = binding.title
override fun onCreate(savedInstanceState: Bundle?) {
+ lifecycleScope.launch { if (requireActivity().showPinIfNeeded()) dismiss() }
super.onCreate(savedInstanceState)
displayInCards = arguments?.getBoolean(DISPLAY_IN_CARDS)
?: throw IllegalStateException("Display in list should be provided")
More information about the Android
mailing list