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


# instance fields
.field public final a:Lcom/google/android/gms/ads/internal/util/zzg;

.field public final b:Lz5/m31;

.field public final c:Lz5/mm0;

.field public final d:Lz5/hm0;

.field public final e:Lz5/zm0;

.field public final f:Lz5/dn0;

.field public final g:Ljava/util/concurrent/Executor;

.field public final h:Ljava/util/concurrent/Executor;

.field public final i:Lz5/pq;

.field public final j:Lz5/gm0;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/ads/internal/util/zzg;Lz5/m31;Lz5/mm0;Lz5/hm0;Lz5/zm0;Lz5/dn0;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;Lz5/gm0;)V
    .registers 10

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

    iput-object p1, p0, Lz5/um0;->a:Lcom/google/android/gms/ads/internal/util/zzg;

    iput-object p2, p0, Lz5/um0;->b:Lz5/m31;

    iget-object p1, p2, Lz5/m31;->i:Lz5/pq;

    iput-object p1, p0, Lz5/um0;->i:Lz5/pq;

    iput-object p3, p0, Lz5/um0;->c:Lz5/mm0;

    iput-object p4, p0, Lz5/um0;->d:Lz5/hm0;

    iput-object p5, p0, Lz5/um0;->e:Lz5/zm0;

    iput-object p6, p0, Lz5/um0;->f:Lz5/dn0;

    iput-object p7, p0, Lz5/um0;->g:Ljava/util/concurrent/Executor;

    iput-object p8, p0, Lz5/um0;->h:Ljava/util/concurrent/Executor;

    iput-object p9, p0, Lz5/um0;->j:Lz5/gm0;

    return-void
.end method

.method public static b(Landroid/widget/RelativeLayout$LayoutParams;I)V
    .registers 7

    const/16 v0, 0x9

    const/16 v1, 0xa

    if-eqz p1, :cond_25

    const/4 v2, 0x2

    const/16 v3, 0xb

    const/16 v4, 0xc

    if-eq p1, v2, :cond_1e

    const/4 v2, 0x3

    if-eq p1, v2, :cond_17

    invoke-virtual {p0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    return-void

    :cond_17
    invoke-virtual {p0, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    return-void

    :cond_1e
    invoke-virtual {p0, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    return-void

    :cond_25
    invoke-virtual {p0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    return-void
.end method


# virtual methods
.method public final a(Lz5/en0;)V
    .registers 4

    if-nez p1, :cond_3

    return-void

    :cond_3
    invoke-interface {p1}, Lz5/en0;->b1()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lz5/um0;->c:Lz5/mm0;

    iget-object v1, v1, Lz5/mm0;->a:Lz5/b31;

    invoke-static {v0, v1}, Lcom/google/android/gms/ads/internal/util/zzca;->zzi(Landroid/content/Context;Lz5/b31;)Z

    move-result v1

    if-nez v1, :cond_16

    return-void

    :cond_16
    instance-of v1, v0, Landroid/app/Activity;

    if-nez v1, :cond_20

    const-string p1, "Activity context is needed for policy validator."

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

    return-void

    :cond_20
    iget-object v1, p0, Lz5/um0;->f:Lz5/dn0;

    if-eqz v1, :cond_4b

    invoke-interface {p1}, Lz5/en0;->p()Landroid/widget/FrameLayout;

    move-result-object v1

    if-nez v1, :cond_2b

    goto :goto_4b

    :cond_2b
    :try_start_2b
    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {p1}, Lz5/en0;->p()Landroid/widget/FrameLayout;

    move-result-object p1

    iget-object v1, p0, Lz5/um0;->f:Lz5/dn0;

    invoke-virtual {v1, p1, v0}, Lz5/dn0;->a(Landroid/view/View;Landroid/view/WindowManager;)Landroid/view/View;

    move-result-object p1

    invoke-static {}, Lcom/google/android/gms/ads/internal/util/zzca;->zzj()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    invoke-interface {v0, p1, v1}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    :try_end_44
    .catch Lz5/h80; {:try_start_2b .. :try_end_44} :catch_45

    return-void

    :catch_45
    move-exception p1

    const-string v0, "web view can not be obtained"

    invoke-static {v0, p1}, Lcom/google/android/gms/ads/internal/util/zze;->zzb(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_4b
    :goto_4b
    return-void
.end method

.method public final c(Landroid/view/ViewGroup;Z)Z
    .registers 6

    if-eqz p2, :cond_9

    iget-object p2, p0, Lz5/um0;->d:Lz5/hm0;

    invoke-virtual {p2}, Lz5/hm0;->h()Landroid/view/View;

    move-result-object p2

    goto :goto_10

    :cond_9
    iget-object p2, p0, Lz5/um0;->d:Lz5/hm0;

    .line 1
    monitor-enter p2

    :try_start_c
    iget-object v0, p2, Lz5/hm0;->n:Landroid/view/View;
    :try_end_e
    .catchall {:try_start_c .. :try_end_e} :catchall_4e

    monitor-exit p2

    move-object p2, v0

    :goto_10
    if-nez p2, :cond_14

    const/4 p1, 0x0

    return p1

    .line 2
    :cond_14
    invoke-virtual {p1}, Landroid/view/ViewGroup;->removeAllViews()V

    invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v0, v0, Landroid/view/ViewGroup;

    if-eqz v0, :cond_28

    invoke-virtual {p2}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-virtual {v0, p2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    :cond_28
    sget-object v0, Lz5/so;->c2:Lz5/no;

    .line 3
    sget-object v1, Lz5/xk;->d:Lz5/xk;

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

    .line 4
    invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)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/16 v1, 0x11

    if-eqz v0, :cond_43

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

    const/4 v2, -0x1

    invoke-direct {v0, v2, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    goto :goto_49

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

    const/4 v2, -0x2

    invoke-direct {v0, v2, v2, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    :goto_49
    invoke-virtual {p1, p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    const/4 p1, 0x1

    return p1

    :catchall_4e
    move-exception p1

    .line 5
    monitor-exit p2

    throw p1
.end method
