material-components-android
material-components-android copied to clipboard
BottomSheetDialog - BottomSheetDialog flickering Animation while comes to foreground
trafficstars
Description: When I set the dialog to show, the slide from bottom animation occurs and the dialog is shown. Now, If I set the app to background and then bring it back to the foreground, the dialog that was already showing does the same slide bottom to top animation.
Expected behavior: It should be not slide bottom to top as app comes from background to foreground
Source code:
final BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(MainActivity.this);
bottomSheetDialog.setContentView(R.layout.bottom_sheet_dialog_layout);
bottomSheetDialog.show();
Android API version: Android 11 and below. Working fine with Android 12
Material Library version: 1.1.0/1.2.0
Device: Pixel 2 xl with Android 11