summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-16 22:57:34 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-16 22:57:35 +0000
commit0d68dad4e0fde69e1a1e85efc19840363f4f9539 (patch)
treecba6429afe29de4259d02cb61547c1f863d531e1
parent2239ec70b0733d655968b10176562f1aee4ad7a8 (diff)
parentdbe9a8c18bec55943c2239f1381774a6a4ba2a59 (diff)
Merge "Fix fragment position in dialpad fade-out."
-rw-r--r--src/com/android/dialer/DialtactsActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index fe29d2c18..6fdf5499e 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -588,6 +588,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mIsDialpadShown = false;
mDialpadFragment.setAnimate(animate);
+ updateSearchFragmentPosition();
updateFloatingActionButton();
if (animate) {
Animation slideOut = AnimationUtils.loadAnimation(this, R.anim.slide_out);
@@ -602,7 +603,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
commitDialpadFragmentHide();
}
- updateSearchFragmentPosition();
mListsFragment.maybeShowActionBar();
}
@@ -618,9 +618,9 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
private void updateSearchFragmentPosition() {
int translationValue = mIsDialpadShown ? -mActionBarHeight : 0;
SearchFragment fragment = null;
- if (mInDialpadSearch) {
+ if (mSmartDialSearchFragment != null && mSmartDialSearchFragment.isVisible()) {
fragment = mSmartDialSearchFragment;
- } else if (mInRegularSearch) {
+ } else if (mRegularSearchFragment != null && mRegularSearchFragment.isVisible()) {
fragment = mRegularSearchFragment;
}
if (fragment != null && fragment.isVisible()) {