openhab-android
openhab-android copied to clipboard
Different handling for too long text on switch
Currently there's a fixed limit of how many characters of a text for a switch are shown. I suggest to enhance this to compare all options for the switch to check if 2 or more would appear as duplicate (so it's no longer possible to distinguish between those), in that case switch to a selection instead.
Currently there's a fixed limit of how many characters of a text for a switch are shown.
No - the number of shown switches is fixed, not the number of characters. This is because checking the number of characters as suggested would vastly complicate the switch handling. Besides that, switching to a selection was removed in favor of an 'overflow' button. If there's more switches than can be shown (IOW, more switches than the screen width dependent constant maximum), another button will be shown that opens the selection bottom sheet.
In the just released version 3.3.0 the overflow button got smaller, so there should be place for text inside the buttons now.