package defpackage;

import android.view.MotionEvent;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import com.strmr.ps.ui.mobile.settings.g;
import defpackage.i66;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class gy5 implements View.OnTouchListener {
    public final /* synthetic */ int a;
    public final /* synthetic */ RecyclerView.g b;
    public final /* synthetic */ RecyclerView.ag c;

    public /* synthetic */ gy5(RecyclerView.g gVar, RecyclerView.ag agVar, int i) {
        this.a = i;
        this.b = gVar;
        this.c = agVar;
    }

    @Override // android.view.View.OnTouchListener
    public final boolean onTouch(View view, MotionEvent motionEvent) {
        co coVar;
        int i = this.a;
        RecyclerView.ag agVar = this.c;
        RecyclerView.g gVar = this.b;
        switch (i) {
            case 0:
                iy5 iy5Var = (iy5) gVar;
                if (motionEvent.getActionMasked() == 0 && (coVar = iy5Var.a) != null) {
                    coVar.invoke(agVar);
                }
                break;
            case 1:
                g gVar2 = (g) gVar;
                g.a aVar = (g.a) agVar;
                int i2 = g.a.j;
                if (motionEvent.getActionMasked() == 0) {
                    gVar2.f.invoke(aVar);
                }
                break;
            default:
                i66 i66Var = (i66) gVar;
                i66.a aVar2 = (i66.a) agVar;
                int i3 = i66.a.g;
                if (motionEvent.getActionMasked() == 0) {
                    i66Var.c.invoke(aVar2);
                }
                break;
        }
        return false;
    }
}
