I have a BottomSheetDialogFragment
in which the user can buy stuff. To pay with a master/visa card the user is sent to the browser for a safe payment transaction.
When I return to the app again, everything is fine. But if I then close the bottom sheet dialog and open it again, the content is suddenly pushed below the screen, as shown in the Layout Inspector image below. So the user doesn't see the content anymore, he just sees the standard dark shadow which is always shown behind dialogs.
And everything works fine if I close/open the dialog for all steps except for when I close/open it after the roundtrip to the browser.
The bottom sheet is suddenly getting a way to large height (goes from ~500px in the normal case to ~1500px in the buggy case). But I don't know why.
Any thoughts on this is greatly appreciated.
from Android BottomSheetDialog content gets pushed off screen
No comments:
Post a Comment