зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
f9aa45809c
Коммит
1e384b6bd5
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче