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

[Catalog][BottomSheet] foreground color of status bar doesn't change even if bottom sheet is opened multiple times #4000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ public View onCreateDemoView(
bottomSheetDialog.setContentView(R.layout.cat_bottomsheet_content);
// Opt in to perform swipe to dismiss animation when dismissing bottom sheet dialog.
bottomSheetDialog.setDismissWithAnimation(true);
windowPreferencesManager.applyEdgeToEdgePreference(bottomSheetDialog.getWindow());
View bottomSheetInternal = bottomSheetDialog.findViewById(R.id.design_bottom_sheet);
BottomSheetBehavior.from(bottomSheetInternal).setPeekHeight(peekHeightPx);
View button = view.findViewById(R.id.bottomsheet_button);
button.setOnClickListener(
v -> {
windowPreferencesManager.applyEdgeToEdgePreference(bottomSheetDialog.getWindow());
bottomSheetDialog.show();
bottomSheetDialog.setTitle(getText(R.string.cat_bottomsheet_title));
Button button0 = bottomSheetInternal.findViewById(R.id.cat_bottomsheet_modal_button);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,13 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle bundle) {
// Opt in to perform swipe to dismiss animation when dismissing bottom sheet dialog.
bottomSheetDialog.setDismissWithAnimation(true);

new WindowPreferencesManager(requireContext())
.applyEdgeToEdgePreference(bottomSheetDialog.getWindow());
verticalDivider =
new MaterialDividerItemDecoration(requireContext(), MaterialDividerItemDecoration.VERTICAL);

Button showBottomSheetButton = view.findViewById(R.id.show_bottomsheet_button);
showBottomSheetButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
bottomSheetDialog.show();
}
showBottomSheetButton.setOnClickListener(v -> {
new WindowPreferencesManager(requireContext()).applyEdgeToEdgePreference(bottomSheetDialog.getWindow());
bottomSheetDialog.show();
});

MaterialSwitch debugSwitch = bottomSheetDialog.findViewById(R.id.debug_switch);
Expand Down