From 178a47e1638a6bc1f5e1150a4f77bcc6b1bc914e Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Wed, 13 Sep 2017 16:26:23 -0700 Subject: Fixed an animation bug in new search fragment that was clipping results. Test: manual PiperOrigin-RevId: 168612783 Change-Id: I811133aee3301bac6936d5ba101719c30322d3be --- java/com/android/dialer/searchfragment/list/NewSearchFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java index 0623d394a..2527b87ee 100644 --- a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java +++ b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java @@ -210,7 +210,7 @@ public final class NewSearchFragment extends Fragment } boolean slideUp = start > end; Interpolator interpolator = slideUp ? AnimUtils.EASE_IN : AnimUtils.EASE_OUT; - int startHeight = getView().getHeight(); + int startHeight = getActivity().findViewById(android.R.id.content).getHeight(); int endHeight = startHeight - (end - start); getView().setTranslationY(start); getView() -- cgit v1.2.3