LawnchairLauncher / lawnchair

No clever tagline needed.
https://lawnchair.app
Other
9.07k stars 1.19k forks source link

UI string for slider too long to display corresponding number correctly #4547

Closed tgex0 closed 5 days ago

tgex0 commented 1 month ago

Describe the bug

In 'Drawer search -> Apps & Shortcuts', the text "Maximum number of apps in search results" is too long for a 2-digit number to be displayed. With a setting of 10 or greater, the digits appear vertically (see screenshot).

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to 'Drawer search'
  2. Click on 'Apps & Shortcuts'
  3. Increase the slider for "Maximum number of apps in search results" to a value of 10 or greater
  4. There is not enough room after the string for the 2-digit number corresponding to the slider position

Expected behavior

The number should be displayed correctly, justified to the right of the string.

Screenshots

Screenshot_2024-07-06-10-38-31-709_app lawnchair

Device information

Additional context

No response

tgex0 commented 1 month ago

Just checked... works fine with a shorter string (numbers appear to the right of the string as expected).

(Similar problem to #4548 but different string.)

However, my phone uses a European/EEA stock ROM with English (United Kingdom) language/locale but I noticed that Lawnchair uses the strings from the values-en-rCA/strings.xml (Canadian English) file. If this is not intentional, please let me know and I'll open a new bug report. Thanks.