diff options
author | 2014-05-14 00:24:32 +0000 | |
---|---|---|
committer | 2014-05-14 00:24:32 +0000 | |
commit | b809ae1d401ae37bb8efbffd5d8a311a2c660db5 (patch) | |
tree | 2b0bb03857e49843619e52ee3339892d756a5af1 /java/src | |
parent | 722b3d68153f01e1cf645dc6112d46fdb836ba93 (diff) | |
parent | 08103a0e0784ef0396fd17cbd955309270f8d3a9 (diff) | |
download | latinime-b809ae1d401ae37bb8efbffd5d8a311a2c660db5.tar.gz latinime-b809ae1d401ae37bb8efbffd5d8a311a2c660db5.tar.xz latinime-b809ae1d401ae37bb8efbffd5d8a311a2c660db5.zip |
am 08103a0e: Show voice key even when important notice is showing
* commit '08103a0e0784ef0396fd17cbd955309270f8d3a9':
Show voice key even when important notice is showing
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index d4f7f36da..619804afa 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -124,9 +124,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick mImportantNoticeStrip.setVisibility(INVISIBLE); } - public void showImportantNoticeStrip() { + public void showImportantNoticeStrip(final boolean enableVoiceKey) { mSuggestionsStrip.setVisibility(INVISIBLE); - mVoiceKey.setVisibility(INVISIBLE); + mVoiceKey.setVisibility(enableVoiceKey ? VISIBLE : INVISIBLE); mAddToDictionaryStrip.setVisibility(INVISIBLE); mImportantNoticeStrip.setVisibility(VISIBLE); } @@ -274,7 +274,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick dismissMoreSuggestionsPanel(); } mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, importantNoticeTitle); - mStripVisibilityGroup.showImportantNoticeStrip(); + mStripVisibilityGroup.showImportantNoticeStrip(isVoiceKeyEnabled()); mImportantNoticeStrip.setOnClickListener(this); return true; } |