.class public final Lcom/google/android/gms/ads/internal/util/zzd;
.super Ljava/lang/Object;
.source ""


# direct methods
.method public static zza(Landroid/content/Context;)V
    .registers 4

    sget-object v0, Lz5/c50;->b:Ljava/lang/Object;

    .line 1
    sget-object v0, Lz5/pp;->a:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_12

    goto :goto_26

    :cond_12
    :try_start_12
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    const-string v2, "development_settings_enabled"

    invoke-static {v0, v2, v1}, Landroid/provider/Settings$Global;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

    move-result v0
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_1c} :catch_20

    if-eqz v0, :cond_26

    const/4 v1, 0x1

    goto :goto_26

    :catch_20
    move-exception v0

    const-string v2, "Fail to determine debug setting."

    invoke-static {v2, v0}, Lz5/d50;->zzj(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_26
    :goto_26
    if-nez v1, :cond_29

    return-void

    .line 2
    :cond_29
    sget-object v0, Lz5/c50;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_2c
    sget-boolean v1, Lz5/c50;->c:Z

    monitor-exit v0
    :try_end_2f
    .catchall {:try_start_2c .. :try_end_2f} :catchall_45

    if-nez v1, :cond_44

    .line 3
    new-instance v0, Lcom/google/android/gms/ads/internal/util/zzc;

    invoke-direct {v0, p0}, Lcom/google/android/gms/ads/internal/util/zzc;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/google/android/gms/ads/internal/util/zzb;->zzc()Lz5/fc1;

    move-result-object p0

    const-string v0, "Updating ad debug logging enablement."

    invoke-static {v0}, Lz5/d50;->zzh(Ljava/lang/String;)V

    const-string v0, "AdDebugLogUpdater.updateEnablement"

    invoke-static {p0, v0}, Lcom/google/android/gms/internal/ads/p8;->b(Lz5/fc1;Ljava/lang/String;)V

    :cond_44
    return-void

    :catchall_45
    move-exception p0

    .line 4
    :try_start_46
    monitor-exit v0
    :try_end_47
    .catchall {:try_start_46 .. :try_end_47} :catchall_45

    throw p0
.end method
