From f42a1790c5bbf2be1ed71858897d72898e414235 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 25 Apr 2014 16:56:42 -0700 Subject: Apply padding to fragment view rather than ListView This fixes the problem of pinned headers being hidden by the actionbar. Change-Id: Ieeeee69ab596f2c0cc167dcc70c3928a5fef782d --- src/com/android/dialer/DialtactsActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 1b4002cd1..2e0225a37 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -596,7 +596,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O fragment = mRegularSearchFragment; } if (fragment != null && fragment.isVisible()) { - fragment.getListView().animate().translationY(-mActionBarHeight) + fragment.getView().animate().translationY(-mActionBarHeight) .setInterpolator(hideActionBarInterpolator).setDuration(ANIMATION_DURATION); } @@ -622,7 +622,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O fragment = mRegularSearchFragment; } if (fragment != null && fragment.isVisible()) { - fragment.getListView().animate().translationY(0) + fragment.getView().animate().translationY(0) .setInterpolator(showActionBarInterpolator).setDuration(ANIMATION_DURATION); } -- cgit v1.2.3