Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b163870d authored by Raph Levien's avatar Raph Levien
Browse files

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
parent 096e2dcf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;