aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-06-06 10:48:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-06-06 10:48:00 +0000
commit2385314be081d4955e892b9c37e5aa7c0ed6e660 (patch)
tree661c3789c7b686f4ad270ea1399f501939a22c46 /java/src/com/android/inputmethod/latin/utils
parent7640bb15054a84e9c2f044bd90e1a6ee429b3325 (diff)
parent987bff9136ec101d06db7903ebb3f505e4ea78d6 (diff)
downloadlatinime-2385314be081d4955e892b9c37e5aa7c0ed6e660.tar.gz
latinime-2385314be081d4955e892b9c37e5aa7c0ed6e660.tar.xz
latinime-2385314be081d4955e892b9c37e5aa7c0ed6e660.zip
Merge "Refactor logic to determine showing suggestions strip or not"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils')
-rw-r--r--java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java b/java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java
index 7d937a9d2..8b7077879 100644
--- a/java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java
+++ b/java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java
@@ -23,7 +23,6 @@ import android.provider.Settings.SettingNotFoundException;
import android.text.TextUtils;
import android.util.Log;
-import com.android.inputmethod.latin.InputAttributes;
import com.android.inputmethod.latin.R;
public final class ImportantNoticeUtils {
@@ -78,14 +77,7 @@ public final class ImportantNoticeUtils {
return getCurrentImportantNoticeVersion(context) > lastVersion;
}
- public static boolean shouldShowImportantNotice(final Context context,
- final InputAttributes inputAttributes) {
- if (inputAttributes == null || inputAttributes.mIsPasswordField) {
- return false;
- }
- if (isInSystemSetupWizard(context)) {
- return false;
- }
+ public static boolean shouldShowImportantNotice(final Context context) {
if (!hasNewImportantNotice(context)) {
return false;
}
@@ -93,6 +85,9 @@ public final class ImportantNoticeUtils {
if (TextUtils.isEmpty(importantNoticeTitle)) {
return false;
}
+ if (isInSystemSetupWizard(context)) {
+ return false;
+ }
return true;
}