chrisboyle / sgtpuzzles

Android port of Simon Tatham's Puzzles
https://chris.boyle.name/puzzles
Other
597 stars 168 forks source link

Chooser highlight missing on Android < 10 due to <selector> support #583

Open chrisboyle opened 1 year ago

chrisboyle commented 1 year ago

As discussed on 5e64cffbf816080c546a9256a8635604b80e8cee, Android versions older than 10 don't like <selector> elements in res/color which I introduced recently. The current workaround is that on those versions the chooser lacks the highlighting showing you which game is current.

Others have solved this problem by using a drawable selector instead, but for some reason that makes all the icons solid pink when used as a background behind them (one might then try backgroundTint but it only accepts colors, not drawables).

Better solutions welcome! Ideally without having to revert to the mess we had prior to 83d38596bbd44a991a57dc41bd69314f001eaf8c.