package com.google.android.gms.measurement.internal;

import android.os.Bundle;

/* JADX INFO: loaded from: classes2.dex */
public final class w1 implements Runnable {

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ long f21956d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f21957e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ Object f21958f;

    public /* synthetic */ w1(Object obj, Object obj2, Object obj3, Object obj4, long j10, int i10) {
        this.f21953a = i10;
        this.f21954b = obj2;
        this.f21955c = obj3;
        this.f21957e = obj4;
        this.f21956d = j10;
        this.f21958f = obj;
    }

    @Override // java.lang.Runnable
    public final void run() {
        Object obj = this.f21957e;
        int i10 = this.f21953a;
        Object obj2 = this.f21955c;
        Object obj3 = this.f21954b;
        Object obj4 = this.f21958f;
        switch (i10) {
            case 0:
                String str = (String) obj3;
                if (str != null) {
                    x2 x2Var = new x2((String) obj, str, this.f21956d);
                    z3 z3Var = ((r1) obj4).f21881a;
                    String str2 = (String) obj2;
                    z3Var.zzl().w();
                    String str3 = z3Var.F;
                    if (str3 != null) {
                        str3.equals(str2);
                    }
                    z3Var.F = str2;
                    z3Var.E = x2Var;
                } else {
                    z3 z3Var2 = ((r1) obj4).f21881a;
                    String str4 = (String) obj2;
                    z3Var2.zzl().w();
                    String str5 = z3Var2.F;
                    if (str5 == null || str5.equals(str4)) {
                        z3Var2.F = str4;
                        z3Var2.E = null;
                    }
                }
                break;
            case 1:
                ((g2) obj4).S((String) obj3, (String) obj2, obj, this.f21956d);
                break;
            default:
                w2 w2Var = (w2) obj4;
                Bundle bundle = (Bundle) obj3;
                x2 x2Var2 = (x2) obj2;
                x2 x2Var3 = (x2) obj;
                long j10 = this.f21956d;
                if (bundle != null) {
                    bundle.remove("screen_name");
                    bundle.remove("screen_class");
                }
                w2Var.K(x2Var2, x2Var3, j10, true, w2Var.v().H("screen_view", bundle, null, false));
                break;
        }
    }
}
