Davide Giuseppe Farella
06/12/2019, 8:50 PMMatej Drobnič
06/13/2019, 6:20 AMinitRotationEnabledComponent
. I wish Kotlin would support by RotatioEnabledDelegate(this)
Davide Giuseppe Farella
06/13/2019, 6:27 AMonStart
, so going back to the previous activity I will have the right rotation, otherwise if I'm in portrait, go in background, go in landscape, back to my app and press back, I'll be sent back to my old portrait rotation.
Even worst, in a Fragment
you won't have access to the Activity when it's created, you will have lazily when onActivityCreated
LifecycleOwner
in a similar way:Matej Drobnič
06/13/2019, 6:30 AMRotationEnabled
was just normal field in activity/fragment?Davide Giuseppe Farella
06/13/2019, 6:32 AMby Delegate
than have a reference to call in every place rotationDelegate.rotate( )
Matej Drobnič
06/13/2019, 6:33 AMTuan Kiet
06/15/2019, 3:36 AMRotatioEnabledDelegate
become a LifecyclerObserver
Davide Giuseppe Farella
06/15/2019, 5:55 AM