h$a$1.smali

.class final Lcom/proxy/ad/adbusiness/h/h$a$1;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/proxy/ad/adbusiness/h/h$a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/proxy/ad/adbusiness/h/h$a;


# direct methods
.method constructor <init>(Lcom/proxy/ad/adbusiness/h/h$a;)V
    .registers 2

    iput-object p1, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

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

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 7

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-object v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->d:Lcom/proxy/ad/adbusiness/h/h;

    invoke-virtual {v0}, Lcom/proxy/ad/adbusiness/h/h;->G()Z

    move-result v0

    if-nez v0, :cond_e3

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->a:Z

    if-eqz v0, :cond_18

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->b:Z

    if-eqz v0, :cond_18

    goto/16 :goto_e3

    :cond_18
    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-object v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->d:Lcom/proxy/ad/adbusiness/h/h;

    iget-object v0, v0, Lcom/proxy/ad/adbusiness/h/h;->I:Landroid/view/View;

    const/4 v1, 0x1

    const-string v2, "ImpressionChecker"

    const/4 v3, 0x0

    if-nez v0, :cond_2f

    sget-boolean v0, Lcom/proxy/ad/a/b/a;->a:Z

    if-eqz v0, :cond_2d

    const-string v0, "view is null"

    :goto_2a
    invoke-static {v2, v0}, Lcom/proxy/ad/log/Logger;->d(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2d
    const/4 v0, 0x0

    goto :goto_92

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

    move-result-object v4

    if-nez v4, :cond_3c

    sget-boolean v0, Lcom/proxy/ad/a/b/a;->a:Z

    if-eqz v0, :cond_2d

    const-string v0, "view has no parent"

    goto :goto_2a

    :cond_3c
    invoke-virtual {v0}, Landroid/view/View;->getWindowVisibility()I

    move-result v4

    if-eqz v4, :cond_49

    sget-boolean v0, Lcom/proxy/ad/a/b/a;->a:Z

    if-eqz v0, :cond_2d

    const-string v0, "adView window is not set to VISIBLE."

    goto :goto_2a

    :cond_49
    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v4

    if-eqz v4, :cond_56

    sget-boolean v0, Lcom/proxy/ad/a/b/a;->a:Z

    if-eqz v0, :cond_2d

    const-string v0, "adView is not set to VISIBLE."

    goto :goto_2a

    :cond_56
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v4

    if-lez v4, :cond_6f

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    if-lez v4, :cond_6f

    new-instance v2, Landroid/graphics/Rect;

    invoke-direct {v2}, Landroid/graphics/Rect;-><init>()V

    invoke-virtual {v0, v2}, Landroid/view/View;->getGlobalVisibleRect(Landroid/graphics/Rect;)Z

    move-result v0

    if-eqz v0, :cond_2d

    const/4 v0, 0x1

    goto :goto_92

    :cond_6f
    sget-boolean v4, Lcom/proxy/ad/a/b/a;->a:Z

    if-eqz v4, :cond_2d

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "adView has invisible dimensions (w="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v5, ", h="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_2a

    :goto_92
    if-nez v0, :cond_ae

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-object v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->d:Lcom/proxy/ad/adbusiness/h/h;

    invoke-virtual {v0}, Lcom/proxy/ad/adbusiness/h/h;->z()Z

    move-result v0

    if-eqz v0, :cond_ad

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-object v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->d:Lcom/proxy/ad/adbusiness/h/h;

    invoke-virtual {v0}, Lcom/proxy/ad/adbusiness/h/h;->g()I

    move-result v0

    invoke-static {v0}, Lcom/proxy/ad/adsdk/consts/AdConsts;->isFullScreenAdType(I)Z

    move-result v0

    if-eqz v0, :cond_ad

    goto :goto_ae

    :cond_ad
    const/4 v1, 0x0

    :cond_ae
    :goto_ae
    if-eqz v1, :cond_c6

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->a:Z

    if-nez v0, :cond_bb

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    invoke-static {v0}, Lcom/proxy/ad/adbusiness/h/h$a;->a(Lcom/proxy/ad/adbusiness/h/h$a;)V

    :cond_bb
    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->b:Z

    if-nez v0, :cond_c6

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    invoke-static {v0}, Lcom/proxy/ad/adbusiness/h/h$a;->b(Lcom/proxy/ad/adbusiness/h/h$a;)V

    :cond_c6
    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->a:Z

    if-eqz v0, :cond_d8

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-boolean v0, v0, Lcom/proxy/ad/adbusiness/h/h$a;->b:Z

    if-eqz v0, :cond_d8

    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    invoke-virtual {v0}, Lcom/proxy/ad/adbusiness/h/h$a;->c()V

    return-void

    :cond_d8
    const/4 v0, 0x2

    iget-object v1, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    iget-object v1, v1, Lcom/proxy/ad/adbusiness/h/h$a;->c:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1f4

    invoke-static {v0, v1, v2, v3}, Lcom/proxy/ad/a/c/b;->a(ILjava/lang/Runnable;J)V

    return-void

    :cond_e3
    :goto_e3
    iget-object v0, p0, Lcom/proxy/ad/adbusiness/h/h$a$1;->a:Lcom/proxy/ad/adbusiness/h/h$a;

    invoke-virtual {v0}, Lcom/proxy/ad/adbusiness/h/h$a;->c()V

    return-void
.end method