aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinKeyboard.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2010-11-18 18:10:25 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-11-18 18:10:25 -0800
commit1d2d3228a393b3c562226936e3523eed4894def4 (patch)
tree2347563a8e81053139475496ce3ab5ee981f74e2 /java/src/com/android/inputmethod/latin/LatinKeyboard.java
parent636eaf3ff383819a57fa4dcac51f838d25dd590d (diff)
parent4ab730dbd34fad323063f2ffd31ce33de746668d (diff)
downloadlatinime-1d2d3228a393b3c562226936e3523eed4894def4.tar.gz
latinime-1d2d3228a393b3c562226936e3523eed4894def4.tar.xz
latinime-1d2d3228a393b3c562226936e3523eed4894def4.zip
Merge "Add a functionarity to handle Subtype"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinKeyboard.java')
-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);
}