diff options
author | Andrew Lee <anwlee@google.com> | 2014-05-19 14:28:16 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-05-19 14:34:25 -0700 |
commit | 44e3daf13a1dfe5a0c7b4b0737f4000aea8fda27 (patch) | |
tree | db8bd7ffbdd30d8612f5843b8dc8c51198da23e1 | |
parent | d2ee2a8096cfcc414a3d20df94049e5372cb7d17 (diff) |
Exit search UI before dialing.
Closes the search UI if there is no query when the dialpad fragment
is hidden. This is so that an empty search list is not shown after
the dialpad fragment is hidden, before the InCallUI is launched.
Change-Id: I580cea94ee1c9f21082eda0f6bff77c5c283282d
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 6 |
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); + } } } |