package o;

import android.os.SystemClock;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewParent;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class IB implements Runnable {
    public final /* synthetic */ int l;
    public final /* synthetic */ JB m;

    public /* synthetic */ IB(JB jb, int i) {
        this.l = i;
        this.m = jb;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.l) {
            case 0:
                ViewParent parent = this.m.f168o.getParent();
                if (parent != null) {
                    parent.requestDisallowInterceptTouchEvent(true);
                    break;
                }
                break;
            default:
                JB jb = this.m;
                jb.a();
                View view = jb.f168o;
                if (view.isEnabled() && !view.isLongClickable() && jb.c()) {
                    view.getParent().requestDisallowInterceptTouchEvent(true);
                    long jUptimeMillis = SystemClock.uptimeMillis();
                    MotionEvent motionEventObtain = MotionEvent.obtain(jUptimeMillis, jUptimeMillis, 3, 0.0f, 0.0f, 0);
                    view.onTouchEvent(motionEventObtain);
                    motionEventObtain.recycle();
                    jb.r = true;
                    break;
                }
                break;
        }
    }
}
