Skip to content
Snippets Groups Projects
Commit 24d1766b authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Improve the display settings grouping setting

parent 2fd1f10c
No related branches found
No related tags found
1 merge request!1625Update the libs
......@@ -165,7 +165,11 @@ class DisplaySettingsDialog : VLCBottomSheetDialogFragment() {
binding.videoGroupSpinner.onItemSelectedListener = object:OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
val groupType = spinnerArrayAdapter.getItem(position) as VideoGroup
lifecycleScope.launch { displaySettingsViewModel.send(SHOW_VIDEO_GROUPS, groupType) }
if (groupType.value != showVideoGroups) {
lifecycleScope.launch { displaySettingsViewModel.send(SHOW_VIDEO_GROUPS, groupType) }
//dismissing as changing grouping will also change the available sorts
dismiss()
}
}
override fun onNothingSelected(parent: AdapterView<*>?) { }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment