diff options
author | 2014-06-06 10:48:00 +0000 | |
---|---|---|
committer | 2014-06-06 10:48:00 +0000 | |
commit | 2385314be081d4955e892b9c37e5aa7c0ed6e660 (patch) | |
tree | 661c3789c7b686f4ad270ea1399f501939a22c46 /java/src/com/android/inputmethod/latin/utils | |
parent | 7640bb15054a84e9c2f044bd90e1a6ee429b3325 (diff) | |
parent | 987bff9136ec101d06db7903ebb3f505e4ea78d6 (diff) | |
download | latinime-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.java | 13 |
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; } |