Skip to content

[Slider] Use the locale from the context for formatting#4573

Open
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:slider/fix-public-locale
Open

[Slider] Use the locale from the context for formatting#4573
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:slider/fix-public-locale

Conversation

@pubiqq
Copy link
Contributor

@pubiqq pubiqq commented Feb 3, 2025

No description provided.

@pubiqq pubiqq mentioned this pull request Nov 11, 2024
@pubiqq pubiqq force-pushed the slider/fix-public-locale branch 2 times, most recently from 13af4a0 to 8d2201e Compare April 21, 2025 16:58
@pubiqq pubiqq force-pushed the slider/fix-public-locale branch from 8d2201e to b64bb69 Compare May 12, 2025 20:34
@pubiqq pubiqq force-pushed the slider/fix-public-locale branch from b64bb69 to 742ccd5 Compare September 8, 2025 21:16
@pubiqq pubiqq force-pushed the slider/fix-public-locale branch from 742ccd5 to e3ae8e1 Compare March 18, 2026 15:10
// Initialize with just this view's visibility.
thisAndAncestorsVisible = isShown();

locale = context.getResources().getConfiguration().locale;
Copy link
Contributor

Choose a reason for hiding this comment

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

Use ConfigurationCompat.getLocales(context.resources.configuration)[0] instead?

Copy link
Contributor Author

@pubiqq pubiqq Mar 20, 2026

Choose a reason for hiding this comment

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

Done.

@pubiqq pubiqq force-pushed the slider/fix-public-locale branch from e3ae8e1 to 58c950b Compare March 20, 2026 17:34
@pubiqq pubiqq requested a review from drchen March 20, 2026 17:57
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.

2 participants