what-the-bank/sources/com/google/android/gms/measurement/internal/zzhz.java

81 lines
3.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.measurement.internal;
import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zzhz implements Application.ActivityLifecycleCallbacks {
final zzia zza;
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityCreated(Activity activity, Bundle bundle) {
zzfv zzfvVar;
try {
try {
this.zza.zzs.zzay().zzj().zza("onActivityCreated");
Intent intent = activity.getIntent();
if (intent == null) {
zzfvVar = this.zza.zzs;
} else {
Uri data = intent.getData();
if (data != null && data.isHierarchical()) {
this.zza.zzs.zzv();
String stringExtra = intent.getStringExtra("android.intent.extra.REFERRER_NAME");
this.zza.zzs.zzaz().zzp(new zzhx(this, bundle == null, data, ("android-app://com.google.android.googlequicksearchbox/https/www.google.com".equals(stringExtra) || "https://www.google.com".equals(stringExtra) || "android-app://com.google.appcrawler".equals(stringExtra)) ? "gs" : "auto", data.getQueryParameter("referrer")));
zzfvVar = this.zza.zzs;
}
zzfvVar = this.zza.zzs;
}
} catch (RuntimeException e) {
this.zza.zzs.zzay().zzd().zzb("Throwable caught in onActivityCreated", e);
zzfvVar = this.zza.zzs;
}
zzfvVar.zzs().zzr(activity, bundle);
} catch (Throwable th) {
this.zza.zzs.zzs().zzr(activity, bundle);
throw th;
}
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityDestroyed(Activity activity) {
this.zza.zzs.zzs().zzs(activity);
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityPaused(Activity activity) {
this.zza.zzs.zzs().zzt(activity);
zzkd zzu = this.zza.zzs.zzu();
zzu.zzs.zzaz().zzp(new zzjw(zzu, zzu.zzs.zzav().elapsedRealtime()));
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityResumed(Activity activity) {
zzkd zzu = this.zza.zzs.zzu();
zzu.zzs.zzaz().zzp(new zzjv(zzu, zzu.zzs.zzav().elapsedRealtime()));
this.zza.zzs.zzs().zzu(activity);
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
this.zza.zzs.zzs().zzv(activity, bundle);
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityStarted(Activity activity) {
}
@Override // android.app.Application.ActivityLifecycleCallbacks
public final void onActivityStopped(Activity activity) {
}
/* JADX INFO: Access modifiers changed from: package-private */
public /* synthetic */ zzhz(zzia zziaVar, zzhy zzhyVar) {
this.zza = zziaVar;
}
}