aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboard.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-11-18 09:55:23 +0900
committersatok <satok@google.com>2010-11-19 08:30:02 +0900
commit4ab730dbd34fad323063f2ffd31ce33de746668d (patch)
treef2efd61ab1141e01bba0afdaa82459d325528f44 /java/src/com/android/inputmethod/latin/LatinKeyboard.java
parent279da1da91681923f2eba3d5e3d82f9ad87cd4b6 (diff)
downloadlatinime-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.java4
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);
}