package kf;

import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;

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

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

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

    public /* synthetic */ e(i iVar, int i10) {
        this.f29151a = i10;
        this.f29152b = iVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        View childAt;
        int i10 = this.f29151a;
        i iVar = this.f29152b;
        switch (i10) {
            case 0:
                LinearLayoutManager linearLayoutManager = (LinearLayoutManager) iVar.f29158a.f27022m.getLayoutManager();
                if (linearLayoutManager != null && (childAt = linearLayoutManager.getChildAt(0)) != null) {
                    iVar.f29174q = childAt;
                    childAt.requestFocus();
                    iVar.f29174q = null;
                    break;
                }
                break;
            default:
                View view = iVar.f29174q;
                if (view != null) {
                    view.requestFocus();
                }
                iVar.f29174q = null;
                break;
        }
    }
}
