HeartCountComponent.smali
.class public Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"
# interfaces
.implements Lsg/bigo/live/support64/component/roomwidget/heart/d;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lsg/bigo/core/component/AbstractComponent<",
"Lsg/bigo/core/mvp/presenter/a;",
"Lsg/bigo/core/component/a/b;",
"Lsg/bigo/live/support64/component/a;",
">;",
"Lsg/bigo/live/support64/component/roomwidget/heart/d;"
}
.end annotation
# instance fields
.field private a:Landroid/widget/TextView;
.field private b:I
.field private c:Z
.field private d:Ljava/lang/Runnable;
# direct methods
.method public constructor <init>(Lsg/bigo/core/component/c;)V
.registers 2
.line 41
invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V
.line 130
new-instance p1, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent$1;
invoke-direct {p1, p0}, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent$1;-><init>(Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;)V
iput-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->d:Ljava/lang/Runnable;
return-void
.end method
# virtual methods
.method public final J_()V
.registers 1
return-void
.end method
.method public final a(I)V
.registers 4
const/4 v0, 0x1
.line 102
iput-boolean v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->c:Z
.line 103
iget v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
if-lt p1, v0, :cond_1c
.line 104
iput p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
.line 105
iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->a:Landroid/widget/TextView;
if-eqz v0, :cond_14
.line 106
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 108
:cond_14
iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->f:Lsg/bigo/core/component/a/d;
sget-object v0, Lsg/bigo/live/support64/component/a/a;->HEART_COUNT_REFRESH:Lsg/bigo/live/support64/component/a/a;
const/4 v1, 0x0
invoke-interface {p1, v0, v1}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
:cond_1c
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 81
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_12
const/4 p1, 0x0
.line 82
iput p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
.line 83
iget-object p2, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->a:Landroid/widget/TextView;
if-eqz p2, :cond_12
.line 84
invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
:cond_12
return-void
.end method
.method public final a(Lsg/bigo/core/component/b/c;)V
.registers 3
.line 76
const-class v0, Lsg/bigo/live/support64/component/roomwidget/heart/d;
invoke-interface {p1, v0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;)V
return-void
.end method
.method public final a(Lsg/bigo/live/support64/bus/proto/roomlist/RoomInfo;)V
.registers 4
const/4 p1, 0x0
.line 54
iput p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
.line 55
iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->d:Ljava/lang/Runnable;
.line 2042
invoke-static {}, Lsg/bigo/common/ac$a;->a()Landroid/os/Handler;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
.line 56
iget-object p1, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->d:Ljava/lang/Runnable;
const-wide/16 v0, 0x3e8
invoke-static {p1, v0, v1}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V
return-void
.end method
.method public final b()V
.registers 1
return-void
.end method
.method public final b(Lsg/bigo/core/component/b/c;)V
.registers 3
.line 71
const-class v0, Lsg/bigo/live/support64/component/roomwidget/heart/d;
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 4
const/4 v0, 0x0
.line 47
iput v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
.line 1123
iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->h:Lsg/bigo/core/component/c/a;
check-cast v0, Lsg/bigo/live/support64/component/a;
const v1, 0x7d08042b
invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewStub;
if-eqz v0, :cond_15
.line 1125
invoke-static {v0}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/view/ViewStub;)Landroid/view/View;
.line 1127
:cond_15
iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->h:Lsg/bigo/core/component/c/a;
check-cast v0, Lsg/bigo/live/support64/component/a;
const v1, 0x7d08034c
invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->a:Landroid/widget/TextView;
.line 49
iget-object v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->d:Ljava/lang/Runnable;
const-wide/16 v1, 0x3e8
invoke-static {v0, v1, v2}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V
return-void
.end method
.method public final d()Ljava/lang/String;
.registers 2
.line 114
iget-boolean v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->c:Z
if-eqz v0, :cond_b
.line 115
iget v0, p0, Lsg/bigo/live/support64/component/roomwidget/heart/HeartCountComponent;->b:I
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v0
return-object v0
:cond_b
const-string v0, "--"
return-object v0
.end method
.method public final u()[Lsg/bigo/core/component/a/b;
.registers 4
const/4 v0, 0x3
new-array v0, v0, [Lsg/bigo/core/component/a/b;
.line 93
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/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_CONNECT:Lsg/bigolive/revenue64/a/d;
const/4 v2, 0x1
aput-object v1, v0, v2
sget-object v1, Lsg/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_DISCONNECT:Lsg/bigolive/revenue64/a/d;
const/4 v2, 0x2
aput-object v1, v0, v2
return-object v0
.end method