package o;

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

    public /* synthetic */ QL(UL ul, int i) {
        this.l = i;
        this.m = ul;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.l) {
            case 0:
                C0097Dt c0097Dt = this.m.n;
                if (c0097Dt != null) {
                    c0097Dt.setListSelectionHidden(true);
                    c0097Dt.requestLayout();
                    break;
                }
                break;
            default:
                UL ul = this.m;
                C0097Dt c0097Dt2 = ul.n;
                if (c0097Dt2 != null && c0097Dt2.isAttachedToWindow() && ul.n.getCount() > ul.n.getChildCount() && ul.n.getChildCount() <= ul.x) {
                    ul.K.setInputMethodMode(2);
                    ul.e();
                    break;
                }
                break;
        }
    }
}
