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

Display settings: invert the display list/grid entry

parent 84e05882
No related branches found
No related tags found
1 merge request!1625Update the libs
......@@ -144,8 +144,8 @@ class DisplaySettingsDialog : VLCBottomSheetDialogFragment() {
*
*/
private fun updateDisplayMode() {
binding.displayInListText.text = getString(if (displayInCards) R.string.display_in_grid else R.string.display_in_list)
binding.displayInListImage.setImageDrawable(ContextCompat.getDrawable(requireActivity(), if (displayInCards) R.drawable.ic_view_grid else R.drawable.ic_view_list))
binding.displayInListText.text = getString(if (!displayInCards) R.string.display_in_grid else R.string.display_in_list)
binding.displayInListImage.setImageDrawable(ContextCompat.getDrawable(requireActivity(), if (!displayInCards) R.drawable.ic_view_grid else R.drawable.ic_view_list))
}
/**
......@@ -215,8 +215,6 @@ class DisplaySettingsDialog : VLCBottomSheetDialogFragment() {
}
}
}
}
......
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