Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When resuming a Fragment which contains a BottomSheet, the sheetview is not recreated #185

Open
ninovanhooff opened this issue Oct 5, 2017 · 0 comments

Comments

@ninovanhooff
Copy link

ninovanhooff commented Oct 5, 2017

(Preconditions: Whe are showing a Fragment with a BottomSheetLayout. A view is showing in that layout. This 'sheetView' has a unique id assigned to it.

When performing a Fragment transaction to transition to another screen, onSaveInstanceState() is called on the sheetView. When placing a breakpoint inside BottomsheetLayout.dismissSheet(), we see that this method was not called.

However when pressing the back button to return to our Fragment, the sheetView has disappeared even though other views (ie TextViews) have restored properly, showing their content. Upon inspecting the view hierarchy we see that the sheetView has disappeared completely. Why is this, and how can I fix this? I want the BottomSheet to re-appear in whichever state it was (HIDDEN, PEEKED, EXPANDED), without animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant