package android.support.v7.widget;

import android.support.v7.widget.RecyclerView.v;
import android.support.v7.widget.y.6;
import android.support.v7.widget.y.b;
import android.view.View;
import android.view.ViewPropertyAnimator;
import java.util.ArrayList;
import java.util.Iterator;

class y$1 implements Runnable {
    final /* synthetic */ y ahA;
    final /* synthetic */ ArrayList ahz;

    y$1(y yVar, ArrayList arrayList) {
        this.ahA = yVar;
        this.ahz = arrayList;
    }

    public final void run() {
        Iterator it = this.ahz.iterator();
        while (it.hasNext()) {
            b bVar = (b) it.next();
            y yVar = this.ahA;
            v vVar = bVar.ahR;
            int i = bVar.ahN;
            int i2 = bVar.ahO;
            int i3 = bVar.ahP;
            int i4 = bVar.ahQ;
            View view = vVar.apJ;
            i = i3 - i;
            i2 = i4 - i2;
            if (i != 0) {
                view.animate().translationX(0.0f);
            }
            if (i2 != 0) {
                view.animate().translationY(0.0f);
            }
            ViewPropertyAnimator animate = view.animate();
            yVar.ahw.add(vVar);
            animate.setDuration(yVar.aov).setListener(new 6(yVar, vVar, i, view, i2, animate)).start();
        }
        this.ahz.clear();
        this.ahA.aht.remove(this.ahz);
    }
}
