package defpackage;

import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import defpackage.gv3;
import defpackage.zd8;

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

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

    @Override // android.view.View.OnFocusChangeListener
    public final void onFocusChange(View view, boolean z) {
        TextView textView;
        int i = this.a;
        RecyclerView.g gVar = this.c;
        int i2 = this.b;
        switch (i) {
            case 0:
                gv3.b bVar = (gv3.b) gVar;
                int i3 = gv3.b.a.c;
                view.setSelected(z);
                if (!z) {
                    vw2.x(view, 1.0f, 1.0f, 100L);
                    if (i2 != bVar.b) {
                        textView = view instanceof TextView ? (TextView) view : null;
                        if (textView != null) {
                            textView.setAlpha(0.7f);
                        }
                    }
                } else {
                    vw2.x(view, 1.02f, 1.02f, 100L);
                    textView = view instanceof TextView ? (TextView) view : null;
                    if (textView != null) {
                        textView.setAlpha(1.0f);
                    }
                }
                break;
            default:
                int i4 = zd8.a.c;
                view.setSelected(i2 == ((zd8) gVar).d);
                if (!z) {
                    vw2.x(view, 1.0f, 1.0f, 120L);
                } else {
                    vw2.x(view, 1.1f, 1.1f, 120L);
                }
                break;
        }
    }
}
