eclipse-kuksa / kuksa-android-companion

Apache License 2.0
3 stars 1 forks source link

Keep Stateful Properties onOrientationChange in MainActivity alive #55

Closed wba2hi closed 6 months ago

wba2hi commented 6 months ago

Describe the solution you'd like During orientation change the VssSpecificationListeners are unsubscribed, dropped, re-created and subscribed again to get into a valid state again.

Instead of unsubscribing and re-subscribing the listener (and other) stateful properties should be moved into the application or viewModel to make sure, that they survive the re-creation of the MainActivity which happens during the orientation change.

Additional context