summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-10-08 08:14:36 -0700
committerYorke Lee <yorkelee@google.com>2013-10-08 08:16:27 -0700
commit5f3ad54d27ab463e92ea557e1102bc1d34732adb (patch)
tree14df197d893713d62ed8d821e3fb5ea353233c08 /src
parentff644e0c25e0eddb0e7af4b6782d94c367b8b5c1 (diff)
Make enlarged actionbar invisible when showing dialpad
Bug: 11118584 Change-Id: Ia89c569f9c95912aeeef5c29cf6b6f140e7334dc
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 42cbbf4c1..82d5c3fee 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -144,6 +144,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
// Padding view used to shift the fragments up when the dialpad is shown.
private View mBottomPaddingView;
private View mFragmentsFrame;
+ private View mActionBar;
private boolean mInDialpadSearch;
private boolean mInRegularSearch;
@@ -302,6 +303,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mBottomPaddingView = findViewById(R.id.dialtacts_bottom_padding);
mFragmentsFrame = findViewById(R.id.dialtacts_frame);
+ mActionBar = findViewById(R.id.fake_action_bar);
prepareSearchView();
if (UI.FILTER_CONTACTS_ACTION.equals(intent.getAction())
@@ -547,11 +549,13 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
@Override
public void onAnimationEnd(Animator animation) {
mBottomPaddingView.setVisibility(View.VISIBLE);
- mFragmentsFrame.setTranslationY(0);
+ mFragmentsFrame.setTranslationY(0);
+ mActionBar.setVisibility(View.INVISIBLE);
}
});
} else {
mSearchViewContainer.setTranslationY(-mSearchView.getHeight());
+ mActionBar.setVisibility(View.INVISIBLE);
}
}
@@ -564,6 +568,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
@Override
public void onAnimationStart(Animator animation) {
mSearchViewContainer.setVisibility(View.VISIBLE);
+ mActionBar.setVisibility(View.VISIBLE);
}
});