aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-06-06 10:50:28 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-06 10:50:28 +0000
commit5482c061beffd195257b7a4d666b0bfb2033570f (patch)
tree661c3789c7b686f4ad270ea1399f501939a22c46 /java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java
parentab74fd6db773b342283a1bd6093a6b7d2be52d72 (diff)
parent2385314be081d4955e892b9c37e5aa7c0ed6e660 (diff)
downloadlatinime-5482c061beffd195257b7a4d666b0bfb2033570f.tar.gz
latinime-5482c061beffd195257b7a4d666b0bfb2033570f.tar.xz
latinime-5482c061beffd195257b7a4d666b0bfb2033570f.zip
am 2385314b: Merge "Refactor logic to determine showing suggestions strip or not"
* commit '2385314be081d4955e892b9c37e5aa7c0ed6e660': Refactor logic to determine showing suggestions strip or not
Diffstat (limited to 'java/src/com/android/inputmethod/latin/utils/ImportantNoticeUtils.java')
-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;
}