package pe;

import android.view.View;
import java.util.ArrayList;
import kotlinx.coroutines.y;
import org.drive_hunter.R;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class b implements Runnable {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f31934a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ g f31935b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ int f31936c;

    public /* synthetic */ b(g gVar, int i10, int i11) {
        this.f31934a = i11;
        this.f31935b = gVar;
        this.f31936c = i10;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f31934a;
        int i11 = this.f31936c;
        g gVar = this.f31935b;
        switch (i10) {
            case 0:
                View viewFindViewByPosition = gVar.F0.f27181b.getLayoutManager() == null ? null : gVar.F0.f27181b.getLayoutManager().findViewByPosition(i11);
                if (viewFindViewByPosition != null && viewFindViewByPosition.isFocusable()) {
                    viewFindViewByPosition.requestFocus();
                } else if (!gVar.F0.f27181b.hasFocus()) {
                    gVar.F0.f27181b.requestFocus();
                }
                break;
            default:
                ArrayList arrayList = gVar.I0;
                arrayList.clear();
                arrayList.addAll(xyz.stream.api.database.f.d().e());
                gVar.H0.f27141b.setImageResource(R.drawable.success_white);
                gVar.H0.f27142c.setText(String.valueOf(i11));
                gVar.H0.f27144e.setText("");
                y.N(gVar.G0.f27210a);
                y.V(gVar.H0.f27140a, new a(gVar, 4));
                break;
        }
    }
}
