[Android] Display settings: invert the display list/grid entry

Nicolas Pomepuy git at videolan.org
Fri Nov 18 12:29:45 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Nov 16 08:07:00 2022 +0100| [1dc6970cf22bae06ebdbc4b27c061866324ef185] | committer: Nicolas Pomepuy

Display settings: invert the display list/grid entry

> https://code.videolan.org/videolan/vlc-android/commit/1dc6970cf22bae06ebdbc4b27c061866324ef185
---

 .../src/org/videolan/vlc/gui/dialogs/DisplaySettingsDialog.kt       | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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 1cf4a09f03..1cb6fcef80 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
@@ -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() {
             }
         }
     }
-
-
 }
 
 



More information about the Android mailing list