diff options
author | calderwoodra <calderwoodra@google.com> | 2017-09-13 16:26:23 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-13 16:41:26 -0700 |
commit | 178a47e1638a6bc1f5e1150a4f77bcc6b1bc914e (patch) | |
tree | 8ec655d00f667c6d132aff26c1de33a9dc7c0cda /java | |
parent | 592098024c2f5c7df232c73034b6ae17e8af53a4 (diff) |
Fixed an animation bug in new search fragment that was clipping results.
Test: manual
PiperOrigin-RevId: 168612783
Change-Id: I811133aee3301bac6936d5ba101719c30322d3be
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/searchfragment/list/NewSearchFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
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() |