package android.support.design.widget;

import android.support.v4.view.s;

class HeaderBehavior$a implements Runnable {
    private final CoordinatorLayout qP;
    private final V qQ;
    final /* synthetic */ HeaderBehavior qR;

    HeaderBehavior$a(HeaderBehavior headerBehavior, CoordinatorLayout coordinatorLayout, V v) {
        this.qR = headerBehavior;
        this.qP = coordinatorLayout;
        this.qQ = v;
    }

    public final void run() {
        if (this.qQ != null && this.qR.qN != null) {
            if (this.qR.qN.computeScrollOffset()) {
                this.qR.c(this.qP, this.qQ, this.qR.qN.getCurrY());
                s.b(this.qQ, this);
                return;
            }
            this.qR.a(this.qP, this.qQ);
        }
    }
}
