Bug 1102275 - Use layout params height instead of the dismiss view's calculated height when resetting the original height. r=bnicholson

This commit is contained in:
Margaret Leibovic 2014-11-26 15:57:25 -08:00
Родитель f9aa45809c
Коммит 1e384b6bd5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -326,9 +326,9 @@ public class SwipeDismissListViewTouchListener implements View.OnTouchListener {
*/
private void performDismiss(final View dismissView, final int dismissPosition) {
final ViewGroup.LayoutParams lp = dismissView.getLayoutParams();
final int originalHeight = dismissView.getHeight();
final int originalHeight = lp.height;
ValueAnimator animator = ValueAnimator.ofInt(originalHeight, 1).setDuration(mAnimationTime);
ValueAnimator animator = ValueAnimator.ofInt(dismissView.getHeight(), 1).setDuration(mAnimationTime);
animator.addListener(new AnimatorListenerAdapter() {
@Override