Kaljurand / K6nele

An Android app that offers speech-to-text user interfaces to other apps
http://kaljurand.github.io/K6nele/
Apache License 2.0
267 stars 83 forks source link

Checkbox does not disable after on-screen rotation. #94

Open davirec opened 2 years ago

davirec commented 2 years ago

When I perform these sequences of events, the checkbox does not disable after on-screen rotation:

  1. Go to the Main activity
  2. Tap in Settings (gear button icon)
  3. Tap in Recognition languages & services
  4. Tick some checkboxes
  5. A screen similar to this will appear:

Before rotation:

  1. Force the pause from the activity and then return to the activity (double rotation). Note: the pause from activity can be performed in several ways. We suggest using a double rotation (starts in portrait, goes to landscape, and back to portrait) with this function previously enabled in the smartphone.

The expected behavior is the application to allow uncheck some checkboxes; however, it is impossible.

After rotation:

Device:

Kaljurand commented 2 years ago

Thanks for the clear bug report! I was not aware of this issue, and it seems to occur even after a simpler sequence of events (on Android 12):

  1. Tick a checkbox
  2. Change orientation (e.g. from portrait to landscape)
  3. Try to uncheck the same checkbox. This fails. Also, trying to scroll the list reveals that there are actually 2 (or more?) lists laid on top of each other.

I hope this is not a blocker for you as a work-around exists (just press BACK to kill the activity and then start it again, without rotating the device). I'm planning to slowly simplify/modernize the UI code using androidx.{lifecycle,compose,...}, so bugs like this would hopefully go away.

davirec commented 2 years ago

Thanks