diff options
author | Yorke Lee <yorkelee@google.com> | 2013-09-09 08:42:38 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-09-09 08:42:38 -0700 |
commit | 3b82fc14c1d05a85e07e457c4d6eeb0e405b7eb3 (patch) | |
tree | 79c5ced7a3b2c26bbf28c76338f0773347aedfb1 | |
parent | 88517c68bac750e467f4b21caf7805c8b44b27f6 (diff) |
Hide voice search icon if search view is not empty
Bug: 10647502
Change-Id: Ic451c378a107789f08b08e32aff0d37dca002f8f
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |