aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
diff options
context:
space:
mode:
authorChieu Nguyen <cvnguyen@google.com>2015-03-18 13:43:55 -0700
committerChieu Nguyen <cvnguyen@google.com>2015-03-18 15:30:22 -0700
commit8ec36026c93d13c1118eda936ac12325e0085561 (patch)
treebd83a21071b7f5d98d1326ac7cbcec149a29812c /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
parentd5335d939a5551326206afb684d0c40ef352eea5 (diff)
downloadlatinime-8ec36026c93d13c1118eda936ac12325e0085561.tar.gz
latinime-8ec36026c93d13c1118eda936ac12325e0085561.tar.xz
latinime-8ec36026c93d13c1118eda936ac12325e0085561.zip
Disable message if personalization is disabled.
Bug: 19087415. Change-Id: I3974f1b676aa4a9bb04ab7f609b6daf1860c64f1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r--java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
index 17525f650..7dd0f03df 100644
--- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
+++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java
@@ -213,7 +213,8 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
// it has been shown once already or not, and if in the setup wizard). If applicable, it shows
// the notice. In all cases, it returns true if it was shown, false otherwise.
public boolean maybeShowImportantNoticeTitle() {
- if (!ImportantNoticeUtils.shouldShowImportantNotice(getContext())) {
+ final SettingsValues currentSettingsValues = Settings.getInstance().getCurrent();
+ if (!ImportantNoticeUtils.shouldShowImportantNotice(getContext(), currentSettingsValues)) {
return false;
}
if (getWidth() <= 0) {