App Layout: Restore bottom sheet fragment on device rotation #7144
Labels
T-Defect
Something isn't working: bugs, crashes, hangs and other reported problems
T-Task
Refactoring, enabling or disabling functionality, other engineering tasks
Team: Delight
Z-AppLayout
An issue to gather a list of non-blocking defects or code improvements to be fixed as soon as time permits
One more point:
When
spaceListBottomSheet
is displayed, if the user rotates it's device, the FragmentSpaceListBottomSheet
will be restored by the System (the BottomSheet will still be visible), butNewHomeDetailFragment
will not have a correct reference to this Fragment, since it will just instantiate a new instance in the constructor.So this code:
https://github.com/vector-im/element-android/blob/develop/vector/src/main/java/im/vector/app/features/home/NewHomeDetailFragment.kt#L197
will not work (I did not check though).
You should try to get the reference (by tag for instance) to the restored bottom sheet Fragment instead of creating a new one.
Originally posted by @bmarty in #7102 (comment)
The text was updated successfully, but these errors were encountered: