Skip to content

Commit

Permalink
[Catalog] state text is updated after restarting activity
Browse files Browse the repository at this point in the history
  • Loading branch information
manabu-nakamura committed Sep 17, 2023
1 parent ce80ae0 commit 934d2fe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ private void updateBottomSheetHeights() {
ViewGroup.LayoutParams params = bottomSheetChildView.getLayoutParams();
BottomSheetBehavior<View> bottomSheetBehavior = BottomSheetBehavior.from(bottomSheetChildView);
bottomSheetBehavior.setUpdateImportantForAccessibilityOnSiblings(fullScreenSwitch.isChecked());
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED) {
TextView bottomSheetText = view.findViewById(R.id.cat_persistent_bottomsheet_state);
bottomSheetText.setText(R.string.cat_bottomsheet_state_expanded);
}
View modalBottomSheetChildView = bottomSheetDialog.findViewById(R.id.bottom_drawer_2);
ViewGroup.LayoutParams layoutParams = modalBottomSheetChildView.getLayoutParams();
BottomSheetBehavior<FrameLayout> modalBottomSheetBehavior = bottomSheetDialog.getBehavior();
Expand Down

0 comments on commit 934d2fe

Please sign in to comment.