From 4f22a545552d308377e178d5df5557cfe15252f9 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Tue, 9 Mar 2010 17:28:13 -0500 Subject: When context is voice, show the microphone. Part of fix for http://b/issue?id=2501400 Change-Id: Ibdf364942bcdc8ec837fb8bb30a33c1af2ba5b06 --- core/java/android/app/SearchDialog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/java/android/app/SearchDialog.java') diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index 3e426f5af78b..bf9b021eaced 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -668,7 +668,10 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS // The user changed the query, remember it. mUserQuery = s == null ? "" : s.toString(); } - updateVoiceButton(mSearchAutoComplete.isEmpty()); + // Always want to show the microphone if the context is voice. + updateVoiceButton(mSearchAutoComplete.isEmpty() + || (mAppSearchData != null && mAppSearchData.getBoolean( + SearchManager.CONTEXT_IS_VOICE))); } public void afterTextChanged(Editable s) { -- cgit v1.2.3