LoadingComponent.smali

.class public Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/live/support64/component/roomwidget/loading/a;
.implements Lsg/bigo/live/support64/component/roomwidget/loading/mvp/a/a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/core/component/AbstractComponent<",
        "Lsg/bigo/live/support64/component/roomwidget/loading/mvp/presenter/a;",
        "Lsg/bigo/core/component/a/b;",
        "Lsg/bigo/live/support64/component/a;",
        ">;",
        "Lsg/bigo/live/support64/component/roomwidget/loading/a;",
        "Lsg/bigo/live/support64/component/roomwidget/loading/mvp/a/a;"
    }
.end annotation


# instance fields
.field protected a:Landroid/view/View;

.field protected b:Lsg/bigo/live/support64/widget/BlurredImage;

.field private c:Lsg/bigo/live/support64/widget/LiveLoadingView;

.field private d:Lsg/bigo/live/support64/component/a;


# direct methods
.method public constructor <init>(Lsg/bigo/core/component/c;)V
    .registers 3

    .line 38
    invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V

    .line 39
    new-instance v0, Lsg/bigo/live/support64/component/roomwidget/loading/mvp/presenter/LoadingPresenter;

    invoke-direct {v0, p0}, Lsg/bigo/live/support64/component/roomwidget/loading/mvp/presenter/LoadingPresenter;-><init>(Lsg/bigo/live/support64/component/roomwidget/loading/mvp/a/a;)V

    iput-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->e:Lsg/bigo/core/mvp/presenter/a;

    .line 40
    check-cast p1, Lsg/bigo/live/support64/component/a;

    iput-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d:Lsg/bigo/live/support64/component/a;

    return-void
.end method

.method private a(J)V
    .registers 6

    .line 107
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->e:Lsg/bigo/core/mvp/presenter/a;

    if-eqz v0, :cond_17

    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object v0

    invoke-virtual {v0}, Lsg/bigo/live/support64/o;->n()J

    move-result-wide v0

    cmp-long v2, v0, p1

    if-nez v2, :cond_17

    .line 108
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->e:Lsg/bigo/core/mvp/presenter/a;

    check-cast v0, Lsg/bigo/live/support64/component/roomwidget/loading/mvp/presenter/a;

    invoke-interface {v0, p1, p2}, Lsg/bigo/live/support64/component/roomwidget/loading/mvp/presenter/a;->a(J)V

    :cond_17
    return-void
.end method

.method private static synthetic a(Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;)V
    .registers 2

    const/4 v0, 0x0

    .line 115
    invoke-interface {p0, v0}, Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;->a(Z)V

    return-void
.end method

.method private d()V
    .registers 3

    .line 113
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lsg/bigo/live/support64/component/a;

    invoke-interface {v0}, Lsg/bigo/live/support64/component/a;->getComponent()Lsg/bigo/core/component/b/d;

    move-result-object v0

    const-class v1, Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;

    invoke-interface {v0, v1}, Lsg/bigo/core/component/b/d;->b(Ljava/lang/Class;)Lsg/bigo/core/component/b/b;

    move-result-object v0

    check-cast v0, Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;

    if-eqz v0, :cond_20

    .line 114
    invoke-interface {v0}, Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;->c()Z

    move-result v1

    if-eqz v1, :cond_20

    .line 115
    new-instance v1, Lsg/bigo/live/support64/component/roomwidget/loading/-$$Lambda$LoadingComponent$lqFHJfkLqXbhiFhYcOnyYcTo_qI;

    invoke-direct {v1, v0}, Lsg/bigo/live/support64/component/roomwidget/loading/-$$Lambda$LoadingComponent$lqFHJfkLqXbhiFhYcOnyYcTo_qI;-><init>(Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;)V

    invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;->a(Ljava/lang/Runnable;)V

    :cond_20
    return-void
.end method

.method public static synthetic lambda$lqFHJfkLqXbhiFhYcOnyYcTo_qI(Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;)V
    .registers 1

    invoke-static {p0}, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a(Lsg/bigo/live/support64/component/roomwidget/roomswicher/a;)V

    return-void
.end method


# virtual methods
.method public final J_()V
    .registers 1

    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .registers 7

    .line 85
    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object v0

    invoke-virtual {v0}, Lsg/bigo/live/support64/o;->r()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_13

    .line 86
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->c:Lsg/bigo/live/support64/widget/LiveLoadingView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Lsg/bigo/live/support64/widget/LiveLoadingView;->setVisibility(I)V

    goto :goto_18

    .line 88
    :cond_13
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->c:Lsg/bigo/live/support64/widget/LiveLoadingView;

    invoke-virtual {v0, v1}, Lsg/bigo/live/support64/widget/LiveLoadingView;->setVisibility(I)V

    .line 90
    :goto_18
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->b:Lsg/bigo/live/support64/widget/BlurredImage;

    const v2, 0x7d0700a4

    invoke-virtual {v0, v2}, Lsg/bigo/live/support64/widget/BlurredImage;->a(I)Lsg/bigo/live/support64/widget/BlurredImage;

    move-result-object v0

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_29

    move-object v2, p1

    goto :goto_2b

    :cond_29
    const-string v2, ""

    :goto_2b
    invoke-virtual {v0, v2}, Lsg/bigo/live/support64/widget/BlurredImage;->setImageURI(Ljava/lang/String;)V

    .line 91
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a:Landroid/view/View;

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

    .line 92
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "showLoading roomId -> "

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

    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object v1

    invoke-virtual {v1}, Lsg/bigo/live/support64/o;->n()J

    move-result-wide v1

    const-wide v3, 0xffffffffL

    and-long/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ", headUrl -> "

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

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

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

    move-result-object p1

    const-string v0, "LoadingComponent"

    invoke-static {v0, p1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 93
    invoke-direct {p0}, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d()V

    return-void
.end method

.method public final a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lsg/bigo/core/component/a/b;",
            "Landroid/util/SparseArray<",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .line 67
    sget-object p2, Lsg/bigo/live/support64/component/a/a;->EVENT_LIVE_SWITCH_ANIMATION_END:Lsg/bigo/live/support64/component/a/a;

    if-ne p1, p2, :cond_10

    .line 68
    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object p1

    invoke-virtual {p1}, Lsg/bigo/live/support64/o;->n()J

    move-result-wide p1

    invoke-direct {p0, p1, p2}, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a(J)V

    return-void

    .line 69
    :cond_10
    sget-object p2, Lsg/bigo/live/support64/component/liveviewer/a;->LIVE_END:Lsg/bigo/live/support64/component/liveviewer/a;

    if-ne p1, p2, :cond_1f

    .line 70
    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object p1

    invoke-virtual {p1}, Lsg/bigo/live/support64/o;->n()J

    move-result-wide p1

    invoke-direct {p0, p1, p2}, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a(J)V

    :cond_1f
    return-void
.end method

.method public final a(Lsg/bigo/core/component/b/c;)V
    .registers 3

    .line 62
    const-class v0, Lsg/bigo/live/support64/component/roomwidget/loading/a;

    invoke-interface {p1, v0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;)V

    return-void
.end method

.method public final b()V
    .registers 3

    .line 50
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d:Lsg/bigo/live/support64/component/a;

    const v1, 0x7d0801b0

    invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a:Landroid/view/View;

    .line 51
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d:Lsg/bigo/live/support64/component/a;

    const v1, 0x7d0801b1

    invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lsg/bigo/live/support64/widget/BlurredImage;

    iput-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->b:Lsg/bigo/live/support64/widget/BlurredImage;

    .line 52
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d:Lsg/bigo/live/support64/component/a;

    const v1, 0x7d0801c5

    invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lsg/bigo/live/support64/widget/LiveLoadingView;

    iput-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->c:Lsg/bigo/live/support64/widget/LiveLoadingView;

    return-void
.end method

.method public final b(Lsg/bigo/core/component/b/c;)V
    .registers 3

    .line 57
    const-class v0, Lsg/bigo/live/support64/component/roomwidget/loading/a;

    invoke-interface {p1, v0, p0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;Lsg/bigo/core/component/b/b;)V

    return-void
.end method

.method public final c()V
    .registers 6

    .line 98
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->c:Lsg/bigo/live/support64/widget/LiveLoadingView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lsg/bigo/live/support64/widget/LiveLoadingView;->setVisibility(I)V

    .line 99
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->b:Lsg/bigo/live/support64/widget/BlurredImage;

    const v2, 0x7d0700a4

    invoke-virtual {v0, v2}, Lsg/bigo/live/support64/widget/BlurredImage;->a(I)Lsg/bigo/live/support64/widget/BlurredImage;

    move-result-object v0

    const-string v2, ""

    invoke-virtual {v0, v2}, Lsg/bigo/live/support64/widget/BlurredImage;->setImageURI(Ljava/lang/String;)V

    .line 100
    iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->a:Landroid/view/View;

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

    .line 101
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "hideLoading roomId -> "

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

    invoke-static {}, Lsg/bigo/live/support64/k;->a()Lsg/bigo/live/support64/o;

    move-result-object v1

    invoke-virtual {v1}, Lsg/bigo/live/support64/o;->n()J

    move-result-wide v1

    const-wide v3, 0xffffffffL

    and-long/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

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

    move-result-object v0

    const-string v1, "LoadingComponent"

    invoke-static {v1, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 102
    invoke-direct {p0}, Lsg/bigo/live/support64/component/roomwidget/loading/LoadingComponent;->d()V

    return-void
.end method

.method public final u()[Lsg/bigo/core/component/a/b;
    .registers 4

    const/4 v0, 0x2

    new-array v0, v0, [Lsg/bigo/core/component/a/b;

    .line 77
    sget-object v1, Lsg/bigo/live/support64/component/a/a;->EVENT_LIVE_SWITCH_ANIMATION_END:Lsg/bigo/live/support64/component/a/a;

    const/4 v2, 0x0

    aput-object v1, v0, v2

    sget-object v1, Lsg/bigo/live/support64/component/liveviewer/a;->LIVE_END:Lsg/bigo/live/support64/component/liveviewer/a;

    const/4 v2, 0x1

    aput-object v1, v0, v2

    return-object v0
.end method