Skip to content

Conversation

@manabu-nakamura
Copy link
Contributor

closes #4501

Fragment fragment = getChildFragmentManager().findFragmentByTag("MaterialDatePicker");
if (fragment instanceof MaterialDatePicker<?>) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
view.post(() -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the whole view.pose(....) part to a private method to avoid duplicated codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I created navigationBarContrast() method.

MaterialDatePicker<?> picker = builder.build();
addSnackBarListeners(picker);
picker.show(getChildFragmentManager(), picker.toString());
picker.show(getChildFragmentManager(), "MaterialDatePicker");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change picker.toString() to a string constant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to find the fragment by findFragmentByTag("MaterialDatePicker").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Catalog][DatePicker] navigation bar has no contrast if edge to edge setting is on

2 participants