Loading src/com/android/dialer/calllog/CallLogFragment.java +6 −4 Original line number Diff line number Diff line Loading @@ -601,7 +601,7 @@ public class CallLogFragment extends AnalyticsListFragment view.getLocalVisibleRect(localVisibleRect); final int scrollingNeeded = localVisibleRect.top > 0 ? -localVisibleRect.top : view.getMeasuredHeight() - localVisibleRect.height(); final ListView listView = getListView(); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { private int mCurrentScroll = 0; Loading @@ -618,11 +618,13 @@ public class CallLogFragment extends AnalyticsListFragment view.requestLayout(); if (isExpand) { if (listView != null) { int scrollBy = (int) (value * scrollingNeeded) - mCurrentScroll; getListView().smoothScrollBy(scrollBy, /* duration = */ 0); listView.smoothScrollBy(scrollBy, /* duration = */ 0); mCurrentScroll += scrollBy; } } } }); // Set everything to their final values when the animation's done. animator.addListener(new AnimatorListenerAdapter() { Loading Loading
src/com/android/dialer/calllog/CallLogFragment.java +6 −4 Original line number Diff line number Diff line Loading @@ -601,7 +601,7 @@ public class CallLogFragment extends AnalyticsListFragment view.getLocalVisibleRect(localVisibleRect); final int scrollingNeeded = localVisibleRect.top > 0 ? -localVisibleRect.top : view.getMeasuredHeight() - localVisibleRect.height(); final ListView listView = getListView(); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { private int mCurrentScroll = 0; Loading @@ -618,11 +618,13 @@ public class CallLogFragment extends AnalyticsListFragment view.requestLayout(); if (isExpand) { if (listView != null) { int scrollBy = (int) (value * scrollingNeeded) - mCurrentScroll; getListView().smoothScrollBy(scrollBy, /* duration = */ 0); listView.smoothScrollBy(scrollBy, /* duration = */ 0); mCurrentScroll += scrollBy; } } } }); // Set everything to their final values when the animation's done. animator.addListener(new AnimatorListenerAdapter() { Loading