diff options
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index f22c3f56f..aefe01f7a 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -166,9 +166,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O AnimationListenerAdapter mSlideInListener = new AnimationListenerAdapter() { @Override public void onAnimationEnd(Animation animation) { - if (!isInSearchUi()) { - enterSearchUi(true /* isSmartDial */, mSearchQuery, false); - } + maybeEnterSearchUi(); } }; @@ -703,6 +701,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O mFloatingActionButtonController.scaleOut(); } else { mFloatingActionButtonController.setVisible(false); + maybeEnterSearchUi(); } mActionBarController.onDialpadUp(); @@ -1038,6 +1037,12 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O } } + private void maybeEnterSearchUi() { + if (!isInSearchUi()) { + enterSearchUi(true /* isSmartDial */, mSearchQuery, false); + } + } + /** * @return True if the search UI was exited, false otherwise */ |