From 860c3b8e8cc65e2a2b26b4da0356b5bcff6450e6 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 9 Jan 2014 16:59:23 +0900 Subject: Add American typography boolean to SpacingAndPunctuations Change-Id: Ic2663eaef38fbe7c5bd1fb3a81771e94c2d4de52 --- java/src/com/android/inputmethod/latin/utils/CapsModeUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'java/src/com/android/inputmethod/latin/utils') diff --git a/java/src/com/android/inputmethod/latin/utils/CapsModeUtils.java b/java/src/com/android/inputmethod/latin/utils/CapsModeUtils.java index 6ad5c77d5..c7416727a 100644 --- a/java/src/com/android/inputmethod/latin/utils/CapsModeUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/CapsModeUtils.java @@ -167,8 +167,7 @@ public final class CapsModeUtils { // No other language has such a rule as far as I know, instead putting inside the quotation // mark as the exact thing quoted and handling the surrounding punctuation independently, // e.g. <> - // Hence, specifically for English, we treat this special case here. - if (Locale.ENGLISH.getLanguage().equals(settingsValues.mLocale.getLanguage())) { + if (settingsValues.mSpacingAndPunctuations.mUsesAmericanTypography) { for (; j > 0; j--) { // Here we look to go over any closing punctuation. This is because in dominant // variants of English, the final period is placed within double quotes and maybe -- cgit v1.2.3-83-g751a