[Slider] Use the locale from the context for formatting by pubiqq · Pull Request #4573 · material-components/material-components-android

Conversation

drchen

// 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.

2 participants

@pubiqq @drchen