summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-09 16:50:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-09 16:50:59 +0000
commit384473a71867987c0bd22a68de91d879bc3ad8fe (patch)
treee112dcb63e588e0d5951d30347bb2eff1ee23f29
parent7bac419c5770808db2ecc5518e2d727c6ca8a6a0 (diff)
parent3b82fc14c1d05a85e07e457c4d6eeb0e405b7eb3 (diff)
Merge "Hide voice search icon if search view is not empty" into klp-dev
-rw-r--r--src/com/android/dialer/DialtactsActivity.java2
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;
}
}