b.smali

.class Lcom/bytedance/sdk/openadsdk/component/interaction/b;
.super Ljava/lang/Object;
.source "TTInteractionAdImpl.java"

# interfaces
.implements Lcom/bytedance/sdk/openadsdk/TTInteractionAd;


# static fields
.field private static i:Z


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Lcom/bytedance/sdk/openadsdk/core/d/h;

.field private c:Landroid/app/Dialog;

.field private d:Lcom/bytedance/sdk/openadsdk/TTInteractionAd$AdInteractionListener;

.field private e:Lc/a/a/a/a/a/c;

.field private f:Lcom/bytedance/sdk/openadsdk/core/k;

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/widget/ImageView;


# direct methods
.method constructor <init>(Landroid/content/Context;Lcom/bytedance/sdk/openadsdk/core/d/h;)V
    .registers 3

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

    .line 2
    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    return-void
.end method

.method static synthetic a(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Landroid/app/Dialog;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    return-object p0
.end method

.method static synthetic a(Lcom/bytedance/sdk/openadsdk/component/interaction/b;Landroid/widget/ImageView;)Landroid/widget/ImageView;
    .registers 2

    .line 2
    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->h:Landroid/widget/ImageView;

    return-object p1
.end method

.method private a()V
    .registers 4

    .line 8
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    if-nez v0, :cond_2e

    .line 9
    new-instance v0, Lcom/bytedance/sdk/openadsdk/core/m;

    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/bytedance/sdk/openadsdk/core/m;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    .line 10
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    new-instance v1, Lcom/bytedance/sdk/openadsdk/component/interaction/b$1;

    invoke-direct {v1, p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b$1;-><init>(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnShowListener(Landroid/content/DialogInterface$OnShowListener;)V

    .line 11
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    new-instance v1, Lcom/bytedance/sdk/openadsdk/component/interaction/b$2;

    invoke-direct {v1, p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b$2;-><init>(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 12
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    check-cast v0, Lcom/bytedance/sdk/openadsdk/core/m;

    const/4 v1, 0x0

    new-instance v2, Lcom/bytedance/sdk/openadsdk/component/interaction/b$3;

    invoke-direct {v2, p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b$3;-><init>(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V

    invoke-virtual {v0, v1, v2}, Lcom/bytedance/sdk/openadsdk/core/m;->a(ZLcom/bytedance/sdk/openadsdk/core/m$a;)V

    :cond_2e
    return-void
.end method

.method static synthetic b(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Landroid/content/Context;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic b(Lcom/bytedance/sdk/openadsdk/component/interaction/b;Landroid/widget/ImageView;)Landroid/widget/ImageView;
    .registers 2

    .line 2
    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->g:Landroid/widget/ImageView;

    return-object p1
.end method

.method private b()V
    .registers 6
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ClickableViewAccessibility"
        }
    .end annotation

    .line 3
    new-instance v0, Lcom/bytedance/sdk/openadsdk/core/a/a;

    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    iget-object v2, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    const-string v3, "interaction"

    const/4 v4, 0x3

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/bytedance/sdk/openadsdk/core/a/a;-><init>(Landroid/content/Context;Lcom/bytedance/sdk/openadsdk/core/d/h;Ljava/lang/String;I)V

    .line 4
    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Lcom/bytedance/sdk/openadsdk/core/a/b;->a(Landroid/view/View;)V

    .line 5
    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Lcom/bytedance/sdk/openadsdk/core/a/b;->b(Landroid/view/View;)V

    .line 6
    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->e:Lc/a/a/a/a/a/c;

    invoke-virtual {v0, v1}, Lcom/bytedance/sdk/openadsdk/core/a/b;->a(Lc/a/a/a/a/a/c;)V

    .line 7
    new-instance v1, Lcom/bytedance/sdk/openadsdk/component/interaction/b$4;

    invoke-direct {v1, p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b$4;-><init>(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V

    invoke-virtual {v0, v1}, Lcom/bytedance/sdk/openadsdk/core/a/b;->a(Lcom/bytedance/sdk/openadsdk/core/a/b$a;)V

    .line 8
    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->h:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 9
    iget-object v1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->h:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    return-void
.end method

.method static synthetic c(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Lcom/bytedance/sdk/openadsdk/core/d/h;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    return-object p0
.end method

.method private c()V
    .registers 5

    .line 2
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/h;->G()Ljava/util/List;

    move-result-object v0

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/bytedance/sdk/openadsdk/core/d/g;

    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/g;->b()I

    move-result v0

    .line 3
    iget-object v2, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    invoke-virtual {v2}, Lcom/bytedance/sdk/openadsdk/core/d/h;->G()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/bytedance/sdk/openadsdk/core/d/g;

    invoke-virtual {v1}, Lcom/bytedance/sdk/openadsdk/core/d/g;->a()Ljava/lang/String;

    move-result-object v1

    .line 4
    iget-object v2, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/bytedance/sdk/openadsdk/g/d;->a(Landroid/content/Context;)Lcom/bytedance/sdk/openadsdk/g/d;

    move-result-object v2

    invoke-virtual {v2}, Lcom/bytedance/sdk/openadsdk/g/d;->g()Lcom/bytedance/sdk/adnet/b/d;

    move-result-object v2

    new-instance v3, Lcom/bytedance/sdk/openadsdk/component/interaction/b$5;

    invoke-direct {v3, p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b$5;-><init>(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V

    invoke-virtual {v2, v1, v3, v0, v0}, Lcom/bytedance/sdk/adnet/b/d;->a(Ljava/lang/String;Lcom/bytedance/sdk/adnet/b/d$d;II)V

    return-void
.end method

.method static synthetic d(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Lcom/bytedance/sdk/openadsdk/TTInteractionAd$AdInteractionListener;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->d:Lcom/bytedance/sdk/openadsdk/TTInteractionAd$AdInteractionListener;

    return-object p0
.end method

.method private d()V
    .registers 2

    const/4 v0, 0x0

    .line 2
    sput-boolean v0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->i:Z

    .line 3
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V

    return-void
.end method

.method static synthetic e(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Landroid/widget/ImageView;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->h:Landroid/widget/ImageView;

    return-object p0
.end method

.method static synthetic f(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b()V

    return-void
.end method

.method static synthetic g(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c()V

    return-void
.end method

.method static synthetic h(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)V
    .registers 1

    .line 1
    invoke-direct {p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->d()V

    return-void
.end method

.method static synthetic i(Lcom/bytedance/sdk/openadsdk/component/interaction/b;)Lcom/bytedance/sdk/openadsdk/core/k;
    .registers 1

    .line 1
    iget-object p0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->f:Lcom/bytedance/sdk/openadsdk/core/k;

    return-object p0
.end method


# virtual methods
.method a(Lcom/bytedance/sdk/openadsdk/core/k;)V
    .registers 4

    .line 3
    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->f:Lcom/bytedance/sdk/openadsdk/core/k;

    .line 4
    iget-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    invoke-static {p1}, Lcom/bytedance/sdk/openadsdk/c/e;->a(Lcom/bytedance/sdk/openadsdk/core/d/h;)V

    .line 5
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->getInteractionType()I

    move-result p1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_1a

    .line 6
    iget-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a:Landroid/content/Context;

    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    const-string v1, "interaction"

    invoke-static {p1, v0, v1}, Lc/a/a/a/a/a/d;->a(Landroid/content/Context;Lcom/bytedance/sdk/openadsdk/core/d/h;Ljava/lang/String;)Lc/a/a/a/a/a/c;

    move-result-object p1

    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->e:Lc/a/a/a/a/a/c;

    .line 7
    :cond_1a
    invoke-direct {p0}, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->a()V

    return-void
.end method

.method public getInteractionType()I
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    if-nez v0, :cond_6

    const/4 v0, -0x1

    return v0

    .line 2
    :cond_6
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/h;->C()I

    move-result v0

    return v0
.end method

.method public getMediaExtraInfo()Ljava/util/Map;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->b:Lcom/bytedance/sdk/openadsdk/core/d/h;

    if-eqz v0, :cond_9

    .line 2
    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/h;->Y()Ljava/util/Map;

    move-result-object v0

    return-object v0

    :cond_9
    const/4 v0, 0x0

    return-object v0
.end method

.method public setAdInteractionListener(Lcom/bytedance/sdk/openadsdk/TTInteractionAd$AdInteractionListener;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->d:Lcom/bytedance/sdk/openadsdk/TTInteractionAd$AdInteractionListener;

    return-void
.end method

.method public showInteractionAd(Landroid/app/Activity;)V
    .registers 3

    .line 1
    invoke-virtual {p1}, Landroid/app/Activity;->isFinishing()Z

    move-result p1

    if-eqz p1, :cond_7

    return-void

    .line 2
    :cond_7
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object p1

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    if-ne p1, v0, :cond_1e

    .line 3
    sget-boolean p1, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->i:Z

    if-nez p1, :cond_1d

    const/4 p1, 0x1

    .line 4
    sput-boolean p1, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->i:Z

    .line 5
    iget-object p1, p0, Lcom/bytedance/sdk/openadsdk/component/interaction/b;->c:Landroid/app/Dialog;

    invoke-virtual {p1}, Landroid/app/Dialog;->show()V

    :cond_1d
    return-void

    .line 6
    :cond_1e
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "can\'t not running in child thread >>> TTInteractionAd.showInteractionAd"

    invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
.end method