- 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
109 lines
4.4 KiB
Java
109 lines
4.4 KiB
Java
package com.google.android.gms.internal.ads;
|
|
|
|
import android.content.Context;
|
|
import android.content.SharedPreferences;
|
|
import android.preference.PreferenceManager;
|
|
import java.util.Objects;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class zzbxv implements SharedPreferences.OnSharedPreferenceChangeListener {
|
|
private final Context zza;
|
|
private final SharedPreferences zzb;
|
|
private final com.google.android.gms.ads.internal.util.zzg zzc;
|
|
private String zzd = "-1";
|
|
private int zze = -1;
|
|
|
|
public zzbxv(Context context, com.google.android.gms.ads.internal.util.zzg zzgVar) {
|
|
this.zzb = PreferenceManager.getDefaultSharedPreferences(context);
|
|
this.zzc = zzgVar;
|
|
this.zza = context;
|
|
}
|
|
|
|
private final void zzb() {
|
|
this.zzc.zzD(true);
|
|
com.google.android.gms.ads.internal.util.zzad.zzc(this.zza);
|
|
}
|
|
|
|
private final void zzc(String str, int i) {
|
|
Context context;
|
|
boolean z = true;
|
|
if (!((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzaJ)).booleanValue() ? !(str.isEmpty() || str.charAt(0) != '1') : !(i == 0 || str.isEmpty() || (str.charAt(0) != '1' && !str.equals("-1")))) {
|
|
z = false;
|
|
}
|
|
this.zzc.zzD(z);
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzgb)).booleanValue() && z && (context = this.zza) != null) {
|
|
context.deleteDatabase("OfflineUpload.db");
|
|
}
|
|
}
|
|
|
|
@Override // android.content.SharedPreferences.OnSharedPreferenceChangeListener
|
|
public final void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String str) {
|
|
boolean z;
|
|
try {
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzaL)).booleanValue()) {
|
|
if (Objects.equals(str, "gad_has_consent_for_cookies")) {
|
|
int i = sharedPreferences.getInt("gad_has_consent_for_cookies", -1);
|
|
if (i != this.zzc.zzb()) {
|
|
zzb();
|
|
}
|
|
this.zzc.zzA(i);
|
|
return;
|
|
}
|
|
if (Objects.equals(str, "IABTCF_TCString")) {
|
|
String string = sharedPreferences.getString(str, "-1");
|
|
if (!Objects.equals(string, this.zzc.zzm())) {
|
|
zzb();
|
|
}
|
|
this.zzc.zzJ(string);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
String string2 = sharedPreferences.getString("IABTCF_PurposeConsents", "-1");
|
|
int i2 = sharedPreferences.getInt("gad_has_consent_for_cookies", -1);
|
|
String valueOf = String.valueOf(str);
|
|
int hashCode = valueOf.hashCode();
|
|
if (hashCode != -2004976699) {
|
|
if (hashCode == -527267622 && valueOf.equals("gad_has_consent_for_cookies")) {
|
|
z = true;
|
|
}
|
|
z = -1;
|
|
} else {
|
|
if (valueOf.equals("IABTCF_PurposeConsents")) {
|
|
z = false;
|
|
}
|
|
z = -1;
|
|
}
|
|
if (!z) {
|
|
if (string2.equals("-1") || this.zzd.equals(string2)) {
|
|
return;
|
|
}
|
|
this.zzd = string2;
|
|
zzc(string2, i2);
|
|
return;
|
|
}
|
|
if (!z) {
|
|
return;
|
|
}
|
|
if (!((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzaJ)).booleanValue() || i2 == -1 || this.zze == i2) {
|
|
return;
|
|
}
|
|
this.zze = i2;
|
|
zzc(string2, i2);
|
|
} catch (Throwable th) {
|
|
com.google.android.gms.ads.internal.zzv.zzp().zzw(th, "AdMobPlusIdlessListener.onSharedPreferenceChanged");
|
|
com.google.android.gms.ads.internal.util.zze.zzb("onSharedPreferenceChanged, errorMessage = ", th);
|
|
}
|
|
}
|
|
|
|
public final void zza() {
|
|
this.zzb.registerOnSharedPreferenceChangeListener(this);
|
|
onSharedPreferenceChanged(this.zzb, "gad_has_consent_for_cookies");
|
|
if (((Boolean) com.google.android.gms.ads.internal.client.zzbe.zzc().zza(zzbcl.zzaL)).booleanValue()) {
|
|
onSharedPreferenceChanged(this.zzb, "IABTCF_TCString");
|
|
} else {
|
|
onSharedPreferenceChanged(this.zzb, "IABTCF_PurposeConsents");
|
|
}
|
|
}
|
|
}
|