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

Commit 77f79a39 authored by satok's avatar satok Committed by Android Git Automerger
Browse files

am f927e17a: Use correct spell check locale

* commit 'f927e17a':
  Use correct spell check locale
parents ca414550 f927e17a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -146,7 +146,10 @@ public final class SpellCheckerSubtype implements Parcelable {
        return false;
    }

    private static Locale constructLocaleFromString(String localeStr) {
    /**
     * @hide
     */
    public static Locale constructLocaleFromString(String localeStr) {
        if (TextUtils.isEmpty(localeStr))
            return null;
        String[] localeParams = localeStr.split("_", 3);
+1 −1
Original line number Diff line number Diff line
@@ -7678,7 +7678,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                mContext.getSystemService(Context.TEXT_SERVICES_MANAGER_SERVICE);
        final SpellCheckerSubtype subtype = textServicesManager.getCurrentSpellCheckerSubtype(true);
        if (subtype != null) {
            locale = new Locale(subtype.getLocale());
            locale = SpellCheckerSubtype.constructLocaleFromString(subtype.getLocale());
        }
        return locale;
    }