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


# instance fields
.field private final zza:Landroid/view/View;

.field private zzb:Landroid/app/Activity;

.field private zzc:Z

.field private zzd:Z

.field private zze:Z

.field private final zzf:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Landroid/view/View;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;Landroid/view/ViewTreeObserver$OnScrollChangedListener;)V
    .registers 5

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

    iput-object p1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzb:Landroid/app/Activity;

    iput-object p2, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zza:Landroid/view/View;

    iput-object p3, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    return-void
.end method

.method private final zzf()V
    .registers 3

    iget-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzc:Z

    if-nez v0, :cond_20

    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzb:Landroid/app/Activity;

    if-eqz v0, :cond_13

    iget-object v1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzh(Landroid/app/Activity;)Landroid/view/ViewTreeObserver;

    move-result-object v0

    if-eqz v0, :cond_13

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    :cond_13
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzz()Lz5/o50;

    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zza:Landroid/view/View;

    iget-object v1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-static {v0, v1}, Lz5/o50;->a(Landroid/view/View;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzc:Z

    :cond_20
    return-void
.end method

.method private final zzg()V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzb:Landroid/app/Activity;

    if-nez v0, :cond_5

    return-void

    :cond_5
    iget-boolean v1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzc:Z

    if-eqz v1, :cond_1a

    iget-object v1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;

    invoke-static {v0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzh(Landroid/app/Activity;)Landroid/view/ViewTreeObserver;

    move-result-object v0

    if-eqz v0, :cond_17

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zze()Lcom/google/android/gms/ads/internal/util/zzad;

    invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    :cond_17
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzc:Z

    :cond_1a
    return-void
.end method

.method private static zzh(Landroid/app/Activity;)Landroid/view/ViewTreeObserver;
    .registers 2

    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p0

    const/4 v0, 0x0

    if-nez p0, :cond_8

    return-object v0

    :cond_8
    invoke-virtual {p0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p0

    if-nez p0, :cond_f

    return-object v0

    :cond_f
    invoke-virtual {p0}, Landroid/view/View;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public final zza(Landroid/app/Activity;)V
    .registers 2

    iput-object p1, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzb:Landroid/app/Activity;

    return-void
.end method

.method public final zzb()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zze:Z

    iget-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzd:Z

    if-eqz v0, :cond_a

    invoke-direct {p0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf()V

    :cond_a
    return-void
.end method

.method public final zzc()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zze:Z

    invoke-direct {p0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzg()V

    return-void
.end method

.method public final zzd()V
    .registers 2

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzd:Z

    iget-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zze:Z

    if-eqz v0, :cond_a

    invoke-direct {p0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzf()V

    :cond_a
    return-void
.end method

.method public final zze()V
    .registers 2

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/google/android/gms/ads/internal/util/zzcl;->zzd:Z

    invoke-direct {p0}, Lcom/google/android/gms/ads/internal/util/zzcl;->zzg()V

    return-void
.end method
