- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
116 lines
4.3 KiB
Java
116 lines
4.3 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.util.Pair;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.browser.customtabs.CustomTabsCallback;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbdn extends CustomTabsCallback {
|
|
private final AtomicBoolean zza = new AtomicBoolean(false);
|
|
private final List zzb = Arrays.asList(((String) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzjL)).split(","));
|
|
private final zzbdq zzc;
|
|
|
|
@Nullable
|
|
private final CustomTabsCallback zzd;
|
|
private final zzdsb zze;
|
|
|
|
public zzbdn(@NonNull zzbdq zzbdqVar, @Nullable CustomTabsCallback customTabsCallback, zzdsb zzdsbVar) {
|
|
this.zzd = customTabsCallback;
|
|
this.zzc = zzbdqVar;
|
|
this.zze = zzdsbVar;
|
|
}
|
|
|
|
private final void zzb(String str) {
|
|
com.google.android.gms.ads.nonagon.signalgeneration.zzaa.zzd(this.zze, null, "pact_action", new Pair("pe", str));
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void extraCallback(String str, @Nullable Bundle bundle) {
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.extraCallback(str, bundle);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
@Nullable
|
|
public final Bundle extraCallbackWithResult(String str, @Nullable Bundle bundle) {
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
return customTabsCallback.extraCallbackWithResult(str, bundle);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void onActivityResized(int i, int i2, Bundle bundle) {
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.onActivityResized(i, i2, bundle);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void onMessageChannelReady(@Nullable Bundle bundle) {
|
|
this.zza.set(false);
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.onMessageChannelReady(bundle);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void onNavigationEvent(int i, @Nullable Bundle bundle) {
|
|
List list;
|
|
this.zza.set(false);
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.onNavigationEvent(i, bundle);
|
|
}
|
|
this.zzc.zzi(com.google.android.gms.ads.internal.zzv.zzC().currentTimeMillis());
|
|
if (this.zzc == null || (list = this.zzb) == null || !list.contains(String.valueOf(i))) {
|
|
return;
|
|
}
|
|
this.zzc.zzf();
|
|
zzb("pact_reqpmc");
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void onPostMessage(String str, @Nullable Bundle bundle) {
|
|
try {
|
|
JSONObject jSONObject = new JSONObject(str);
|
|
if (jSONObject.optInt("gpa", -1) == 0) {
|
|
this.zza.set(true);
|
|
zzb("pact_con");
|
|
this.zzc.zzh(jSONObject.getString("paw_id"));
|
|
}
|
|
} catch (JSONException e) {
|
|
com.google.android.gms.ads.internal.util.zze.zzb("Message is not in JSON format: ", e);
|
|
}
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.onPostMessage(str, bundle);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.browser.customtabs.CustomTabsCallback
|
|
public final void onRelationshipValidationResult(int i, Uri uri, boolean z, @Nullable Bundle bundle) {
|
|
CustomTabsCallback customTabsCallback = this.zzd;
|
|
if (customTabsCallback != null) {
|
|
customTabsCallback.onRelationshipValidationResult(i, uri, z, bundle);
|
|
}
|
|
}
|
|
|
|
public final Boolean zza() {
|
|
return Boolean.valueOf(this.zza.get());
|
|
}
|
|
}
|