diff options
author | 2010-11-18 09:55:23 +0900 | |
---|---|---|
committer | 2010-11-19 08:30:02 +0900 | |
commit | 4ab730dbd34fad323063f2ffd31ce33de746668d (patch) | |
tree | f2efd61ab1141e01bba0afdaa82459d325528f44 /java/src/com/android/inputmethod/latin/LatinKeyboard.java | |
parent | 279da1da91681923f2eba3d5e3d82f9ad87cd4b6 (diff) | |
download | latinime-4ab730dbd34fad323063f2ffd31ce33de746668d.tar.gz latinime-4ab730dbd34fad323063f2ffd31ce33de746668d.tar.xz latinime-4ab730dbd34fad323063f2ffd31ce33de746668d.zip |
Add a functionarity to handle Subtype
Change-Id: Ic6055ba218b64f4276e3db99a435f546c3990ee5
Diffstat (limited to '')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinKeyboard.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboard.java b/java/src/com/android/inputmethod/latin/LatinKeyboard.java index 9473eaf84..6520d08e6 100644 --- a/java/src/com/android/inputmethod/latin/LatinKeyboard.java +++ b/java/src/com/android/inputmethod/latin/LatinKeyboard.java @@ -419,7 +419,7 @@ public class LatinKeyboard extends BaseKeyboard { final Rect bounds = new Rect(); // Estimate appropriate language name text size to fit in maxTextWidth. - String language = SubtypeSwitcher.getLanguageName(locale); + String language = SubtypeSwitcher.getDisplayLanguage(locale); int textWidth = getTextWidth(paint, language, origTextSize, bounds); // Assuming text width and text size are proportional to each other. float textSize = origTextSize * Math.min(maxTextWidth / textWidth, 1.0f); @@ -435,7 +435,7 @@ public class LatinKeyboard extends BaseKeyboard { textSize = origTextSize; } if (useShortName) { - language = SubtypeSwitcher.getShortLanguageName(locale); + language = SubtypeSwitcher.getShortDisplayLanguage(locale); textWidth = getTextWidth(paint, language, origTextSize, bounds); textSize = origTextSize * Math.min(maxTextWidth / textWidth, 1.0f); } |