Give guidance on alternatives to deprecated locale field
The deprecation message for the "locale" field should clearly state what to do instead when only the primary locale is needed. Bug: 27532422 Change-Id: I3e83cc1e9054d4e199d7e34b1a42b7bcd6c77f62
This commit is contained in:
@@ -87,7 +87,8 @@ public final class Configuration implements Parcelable, Comparable<Configuration
|
||||
* resource qualifier.
|
||||
*
|
||||
* @deprecated Do not set or read this directly. Use {@link #getLocales()} and
|
||||
* {@link #setLocales(LocaleList)}.
|
||||
* {@link #setLocales(LocaleList)}. If only the primary locale is needed,
|
||||
* <code>getLocales().get(0)</code> is now the preferred accessor.
|
||||
*/
|
||||
@Deprecated public Locale locale;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user