Fix slight screen jank when sliding dialpad upwards
Apply the translation animation to mSearchAndRemoveViewContainer
(which houses the entire searchbox and its margins), so that the
translation takes into account the entire height of the searchbox
as well as its margins.
Also refactored hideSearchBar slightly to remove an unused codepath.
Bug: 13284310
Change-Id: I7b8873154059f616d8a52c4a0239ea6be89c8efc
(cherry picked from commit 94f490466f2b7f4d9d19c4628a56442ccf8a6adf)
diff --git a/res/layout/dialtacts_activity.xml b/res/layout/dialtacts_activity.xml
index 21f84bb..8f9f39c 100644
--- a/res/layout/dialtacts_activity.xml
+++ b/res/layout/dialtacts_activity.xml
@@ -39,6 +39,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:id="@+id/search_and_remove_view_container"
>
<LinearLayout
android:layout_width="match_parent"