summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 3b68db97b..9586d252e 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -609,7 +609,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mListsFragment.maybeShowActionBar();
if (isInSearchUi()) {
- mSearchIcon.setVisibility(View.GONE);
+ if (TextUtils.isEmpty(mSearchQuery)) {
+ exitSearchUi();
+ } else {
+ mSearchIcon.setVisibility(View.GONE);
+ }
}
}