File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,10 @@ public boolean equals(Object o) {
146146 return false ;
147147 }
148148
149- private static Locale constructLocaleFromString (String localeStr ) {
149+ /**
150+ * @hide
151+ */
152+ public static Locale constructLocaleFromString (String localeStr ) {
150153 if (TextUtils .isEmpty (localeStr ))
151154 return null ;
152155 String [] localeParams = localeStr .split ("_" , 3 );
Original file line number Diff line number Diff line change @@ -7678,7 +7678,7 @@ public Locale getTextServicesLocale() {
76787678 mContext .getSystemService (Context .TEXT_SERVICES_MANAGER_SERVICE );
76797679 final SpellCheckerSubtype subtype = textServicesManager .getCurrentSpellCheckerSubtype (true );
76807680 if (subtype != null ) {
7681- locale = new Locale (subtype .getLocale ());
7681+ locale = SpellCheckerSubtype . constructLocaleFromString (subtype .getLocale ());
76827682 }
76837683 return locale ;
76847684 }
You can’t perform that action at this time.
0 commit comments