Kennyc1012 / BottomSheetMenu

BottomSheetMenu style dialogs for Android
Apache License 2.0
887 stars 99 forks source link

On Resume bottom sheet Hides and expands #49

Closed paramarthasaha96 closed 6 years ago

paramarthasaha96 commented 6 years ago

when we pause the app and the resume it again the bottom sheet first disappears then reappears. Is it possible to keep it fixed unless canceled.

Kennyc1012 commented 6 years ago

Can you post a snippet of your code where you are creating your BottomSheet? Also if possible, the entire class where this is happening

paramarthasaha96 commented 6 years ago

schedule.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { new BottomSheet.Builder(getContext()) .setView(R.layout.layout_schedule) .show(); } }); Here i created the bottomsheet this onClickListener is in a fragment. And this can be reproduced if u show the bottomsheet and then pause the app and resume it again from recent apps.

Kennyc1012 commented 6 years ago

So this looks to be an issue with the windowAnimationStyle in the dialogs style running when resuming. Will further into for a fix.

paramarthasaha96 commented 6 years ago

Hope you fix this soon. Will help me a lot since this happens with bottomsheetdialogfragment as well.

paramarthasaha96 commented 6 years ago

Thanks for the fix so fast 👍

javieranton commented 5 years ago

This bug is still happening for the BottomSheetDialogFragment.

dshazly commented 4 years ago

any solutions it's still happened when the app come from the background the bottom sheet fragment not appear as expanded and display small area of view