.class public final Lz5/o30;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# instance fields
.field public final a:Landroid/content/Context;

.field public final b:Landroid/content/SharedPreferences;

.field public final c:Lcom/google/android/gms/ads/internal/util/zzg;

.field public final d:Lcom/google/android/gms/internal/ads/p1;

.field public e:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/gms/ads/internal/util/zzg;Lcom/google/android/gms/internal/ads/p1;)V
    .registers 5

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, ""

    iput-object v0, p0, Lz5/o30;->e:Ljava/lang/String;

    invoke-static {p1}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lz5/o30;->b:Landroid/content/SharedPreferences;

    iput-object p2, p0, Lz5/o30;->c:Lcom/google/android/gms/ads/internal/util/zzg;

    iput-object p1, p0, Lz5/o30;->a:Landroid/content/Context;

    iput-object p3, p0, Lz5/o30;->d:Lcom/google/android/gms/internal/ads/p1;

    return-void
.end method


# virtual methods
.method public final onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .registers 5

    const-string v0, "IABTCF_PurposeConsents"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_9

    return-void

    :cond_9
    const-string p2, "IABTCF_PurposeConsents"

    const-string v0, ""

    invoke-interface {p1, p2, v0}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_18

    return-void

    :cond_18
    iget-object p2, p0, Lz5/o30;->e:Ljava/lang/String;

    invoke-virtual {p2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_78

    iput-object p1, p0, Lz5/o30;->e:Ljava/lang/String;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C

    move-result p1

    const/16 v0, 0x31

    if-eq p1, v0, :cond_2c

    const/4 p2, 0x1

    :cond_2c
    sget-object p1, Lz5/so;->k0:Lz5/no;

    .line 1
    sget-object v0, Lz5/xk;->d:Lz5/xk;

    iget-object v1, v0, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v1, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_5e

    iget-object p1, p0, Lz5/o30;->c:Lcom/google/android/gms/ads/internal/util/zzg;

    invoke-interface {p1, p2}, Lcom/google/android/gms/ads/internal/util/zzg;->zzB(Z)V

    sget-object p1, Lz5/so;->U3:Lz5/no;

    .line 3
    iget-object v1, v0, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v1, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_5e

    if-eqz p2, :cond_5e

    iget-object p1, p0, Lz5/o30;->a:Landroid/content/Context;

    if-eqz p1, :cond_5e

    const-string p2, "OfflineUpload.db"

    invoke-virtual {p1, p2}, Landroid/content/Context;->deleteDatabase(Ljava/lang/String;)Z

    :cond_5e
    sget-object p1, Lz5/so;->g0:Lz5/no;

    .line 5
    iget-object p2, v0, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 6
    invoke-virtual {p2, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_78

    iget-object p1, p0, Lz5/o30;->d:Lcom/google/android/gms/internal/ads/p1;

    .line 7
    iget-object p1, p1, Lcom/google/android/gms/internal/ads/p1;->l:Ljava/lang/Object;

    monitor-enter p1

    :try_start_73
    monitor-exit p1

    return-void

    :catchall_75
    move-exception p2

    monitor-exit p1
    :try_end_77
    .catchall {:try_start_73 .. :try_end_77} :catchall_75

    throw p2

    :cond_78
    return-void
.end method
