From 3b82fc14c1d05a85e07e457c4d6eeb0e405b7eb3 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 9 Sep 2013 08:42:38 -0700 Subject: Hide voice search icon if search view is not empty Bug: 10647502 Change-Id: Ic451c378a107789f08b08e32aff0d37dca002f8f --- src/com/android/dialer/DialtactsActivity.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index c85ce42bf..ca7a958b7 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -233,6 +233,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O if (TextUtils.isEmpty(newText) && getInSearchUi()) { exitSearchUi(); mSearchViewCloseButton.setVisibility(View.GONE); + mVoiceSearchButton.setVisibility(View.VISIBLE); return; } else if (!TextUtils.isEmpty(newText)) { final boolean sameSearchMode = (dialpadSearch && mInDialpadSearch) || @@ -249,6 +250,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mRegularSearchFragment.setQueryString(newText, false); } mSearchViewCloseButton.setVisibility(View.VISIBLE); + mVoiceSearchButton.setVisibility(View.GONE); return; } } -- cgit v1.2.3