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

Commit 25ba197f authored by Fabrice Di Meglio's avatar Fabrice Di Meglio
Browse files

Make public more RTL APIs

- LocaleUtil will help developers to get the layout direction from a Locale

Change-Id: I184ebcc9c208464b20f0454e7a915426640c74f0
parent 05f692e8
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import libcore.icu.ICU;
/**
 * Various utilities for Locales
 *
 * @hide
 */
public class LocaleUtil {

@@ -41,9 +40,7 @@ public class LocaleUtil {
     * {@link View#LAYOUT_DIRECTION_LTR} or
     * {@link View#LAYOUT_DIRECTION_RTL}.
     *
     * Be careful: this code will need to be changed when vertical scripts will be supported
     *
     * @hide
     * Be careful: this code will need to be updated when vertical scripts will be supported
     */
    public static int getLayoutDirectionFromLocale(Locale locale) {
        if (locale != null && !locale.equals(Locale.ROOT)) {
@@ -69,7 +66,7 @@ public class LocaleUtil {
     * {@link View#LAYOUT_DIRECTION_LTR} or
     * {@link View#LAYOUT_DIRECTION_RTL}.
     *
     * Be careful: this code will need to be changed when vertical scripts will be supported
     * Be careful: this code will need to be updated when vertical scripts will be supported
     *
     * @hide
     */