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

Commit 146cb98e authored by Jean Chalard's avatar Jean Chalard
Browse files

[ML2] Small refactoring

Change-Id: I1283d666b8904ff4e6c012332bdbc9c0c13df415
parent f5960b4f
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1179,10 +1179,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        return mInputLogic.getCurrentRecapitalizeState();
    }

    public Locale getCurrentSubtypeLocale() {
        return mSubtypeSwitcher.getCurrentSubtypeLocale();
    }

    /**
     * @param codePoints code points to get coordinates for.
     * @return x,y coordinates for this keyboard, as a flattened array.
@@ -1496,7 +1492,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
        }
        final String wordToShow;
        if (CapsModeUtils.isAutoCapsMode(mInputLogic.mLastComposedWord.mCapitalizedMode)) {
            wordToShow = word.toLowerCase(getCurrentSubtypeLocale());
            wordToShow = word.toLowerCase(mSubtypeSwitcher.getCurrentSubtypeLocale());
        } else {
            wordToShow = word;
        }