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

import android.app.Activity;
import android.os.Bundle;

/* JADX INFO: loaded from: classes2.dex */
public final class s1 extends g1 {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s1(i1 i1Var, Activity activity, u0 u0Var) {
        super((j1) i1Var.f20225b, true);
        this.f20406e = 3;
        this.f20409h = activity;
        this.f20407f = u0Var;
        this.f20408g = i1Var;
    }

    @Override // com.google.android.gms.internal.measurement.g1
    public final void a() {
        Bundle bundle;
        switch (this.f20406e) {
            case 0:
                ((t0) com.google.android.gms.common.internal.w.checkNotNull(((j1) this.f20408g).f20256i)).getMaxUserProperties((String) this.f20409h, (u0) this.f20407f);
                break;
            case 1:
                ((t0) com.google.android.gms.common.internal.w.checkNotNull(((j1) this.f20408g).f20256i)).performAction((Bundle) this.f20409h, (u0) this.f20407f, this.f20199a);
                break;
            case 2:
                if (((Bundle) this.f20409h) != null) {
                    bundle = new Bundle();
                    if (((Bundle) this.f20409h).containsKey("com.google.app_measurement.screen_service")) {
                        Object obj = ((Bundle) this.f20409h).get("com.google.app_measurement.screen_service");
                        if (obj instanceof Bundle) {
                            bundle.putBundle("com.google.app_measurement.screen_service", (Bundle) obj);
                        }
                    }
                } else {
                    bundle = null;
                }
                ((t0) com.google.android.gms.common.internal.w.checkNotNull(((j1) ((i1) this.f20408g).f20225b).f20256i)).onActivityCreated(new k8.b((Activity) this.f20407f), bundle, this.f20200b);
                break;
            default:
                ((t0) com.google.android.gms.common.internal.w.checkNotNull(((j1) ((i1) this.f20408g).f20225b).f20256i)).onActivitySaveInstanceState(new k8.b((Activity) this.f20409h), (u0) this.f20407f, this.f20200b);
                break;
        }
    }

    @Override // com.google.android.gms.internal.measurement.g1
    public final void b() {
        int i10 = this.f20406e;
        Object obj = this.f20407f;
        switch (i10) {
            case 0:
                ((u0) obj).H(null);
                break;
            case 1:
                ((u0) obj).H(null);
                break;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s1(i1 i1Var, Bundle bundle, Activity activity) {
        super((j1) i1Var.f20225b, true);
        this.f20406e = 2;
        this.f20409h = bundle;
        this.f20407f = activity;
        this.f20408g = i1Var;
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s1(j1 j1Var, Object obj, u0 u0Var, int i10) {
        super(j1Var, true);
        this.f20406e = i10;
        this.f20409h = obj;
        this.f20407f = u0Var;
        this.f20408g = j1Var;
    }
}
