[Slider] Use the locale from the context for formatting by pubiqq · Pull Request #4573 · material-components/material-components-android
Conversation
| // Initialize with just this view's visibility. | ||
| thisAndAncestorsVisible = isShown(); | ||
|
|
||
| locale = context.getResources().getConfiguration().locale; |
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?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters