.class public final Lcom/google/android/gms/ads/internal/overlay/zzq;
.super Landroid/widget/FrameLayout;
.source ""

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private final zza:Landroid/widget/ImageButton;

.field private final zzb:Lcom/google/android/gms/ads/internal/overlay/zzz;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/gms/ads/internal/overlay/zzp;Lcom/google/android/gms/ads/internal/overlay/zzz;)V
    .registers 10

    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Lcom/google/android/gms/ads/internal/overlay/zzq;->zzb:Lcom/google/android/gms/ads/internal/overlay/zzz;

    invoke-virtual {p0, p0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance p3, Landroid/widget/ImageButton;

    invoke-direct {p3, p1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V

    iput-object p3, p0, Lcom/google/android/gms/ads/internal/overlay/zzq;->zza:Landroid/widget/ImageButton;

    const v0, 0x1080017

    invoke-virtual {p3, v0}, Landroid/widget/ImageButton;->setImageResource(I)V

    const/4 v0, 0x0

    invoke-virtual {p3, v0}, Landroid/widget/ImageButton;->setBackgroundColor(I)V

    invoke-virtual {p3, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 1
    sget-object v1, Lz5/wk;->f:Lz5/wk;

    iget-object v2, v1, Lz5/wk;->a:Lz5/z40;

    .line 2
    iget v2, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zza:I

    .line 3
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    invoke-static {v3, v2}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result v2

    .line 4
    iget-object v3, v1, Lz5/wk;->a:Lz5/z40;

    .line 5
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    invoke-static {v3, v0}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result v0

    .line 6
    iget-object v3, v1, Lz5/wk;->a:Lz5/z40;

    .line 7
    iget v3, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzb:I

    .line 8
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    invoke-static {v4, v3}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result v3

    .line 9
    iget-object v4, v1, Lz5/wk;->a:Lz5/z40;

    .line 10
    iget v4, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzc:I

    .line 11
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v5

    invoke-static {v5, v4}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result v4

    .line 12
    invoke-virtual {p3, v2, v0, v3, v4}, Landroid/widget/ImageButton;->setPadding(IIII)V

    const-string v0, "Interstitial close button"

    invoke-virtual {p3, v0}, Landroid/widget/ImageButton;->setContentDescription(Ljava/lang/CharSequence;)V

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    .line 13
    iget-object v2, v1, Lz5/wk;->a:Lz5/z40;

    .line 14
    iget v2, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzd:I

    iget v3, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zza:I

    iget v4, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzb:I

    add-int/2addr v2, v3

    add-int/2addr v2, v4

    .line 15
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v3

    invoke-static {v3, v2}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result v2

    .line 16
    iget-object v1, v1, Lz5/wk;->a:Lz5/z40;

    .line 17
    iget v1, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzd:I

    iget p2, p2, Lcom/google/android/gms/ads/internal/overlay/zzp;->zzc:I

    add-int/2addr v1, p2

    .line 18
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p1

    invoke-static {p1, v1}, Lz5/z40;->f(Landroid/util/DisplayMetrics;I)I

    move-result p1

    const/16 p2, 0x11

    .line 19
    invoke-direct {v0, v2, p1, p2}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {p0, p3, v0}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .registers 2

    iget-object p1, p0, Lcom/google/android/gms/ads/internal/overlay/zzq;->zzb:Lcom/google/android/gms/ads/internal/overlay/zzz;

    if-eqz p1, :cond_7

    invoke-interface {p1}, Lcom/google/android/gms/ads/internal/overlay/zzz;->zzd()V

    :cond_7
    return-void
.end method

.method public final zza(Z)V
    .registers 3

    if-eqz p1, :cond_a

    iget-object p1, p0, Lcom/google/android/gms/ads/internal/overlay/zzq;->zza:Landroid/widget/ImageButton;

    const/16 v0, 0x8

    :goto_6
    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setVisibility(I)V

    return-void

    :cond_a
    iget-object p1, p0, Lcom/google/android/gms/ads/internal/overlay/zzq;->zza:Landroid/widget/ImageButton;

    const/4 v0, 0x0

    goto :goto_6
.end method
