package o;

import android.os.Message;
import android.view.View;
import androidx.appcompat.widget.Toolbar;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class V0 implements View.OnClickListener {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;

    public /* synthetic */ V0(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    @Override // android.view.View.OnClickListener
    public final void onClick(View view) {
        Message message;
        Message message2;
        Message message3;
        switch (this.l) {
            case 0:
                ((AbstractC1918n1) this.m).a();
                break;
            case 1:
                C1158f2 c1158f2 = (C1158f2) this.m;
                Message messageObtain = (view != c1158f2.g || (message3 = c1158f2.i) == null) ? (view != c1158f2.j || (message2 = c1158f2.l) == null) ? (view != c1158f2.m || (message = c1158f2.f520o) == null) ? null : Message.obtain(message) : Message.obtain(message2) : Message.obtain(message3);
                if (messageObtain != null) {
                    messageObtain.sendToTarget();
                }
                c1158f2.C.obtainMessage(1, c1158f2.b).sendToTarget();
                break;
            case 2:
                VN vn = (VN) this.m;
                int i = vn.p;
                if (i != 2) {
                    if (i == 1) {
                        vn.g(2);
                        break;
                    }
                } else {
                    vn.g(1);
                    break;
                }
                break;
            default:
                Of0 of0 = ((Toolbar) this.m).a0;
                LO lo = of0 == null ? null : of0.m;
                if (lo != null) {
                    lo.collapseActionView();
                    break;
                }
                break;
        }
    }
}
