PkEntryComponent.smali
.class public Lsg/bigo/live/support64/component/pk/PkEntryComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"
# interfaces
.implements Lsg/bigo/live/support64/component/pk/c;
.implements Lsg/bigo/live/support64/component/pk/view/e;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lsg/bigo/core/component/AbstractComponent<",
"Lsg/bigo/live/support64/component/pk/presenter/b;",
"Lsg/bigo/core/component/a/b;",
"Lsg/bigo/live/support64/component/a;",
">;",
"Lsg/bigo/live/support64/component/pk/c;",
"Lsg/bigo/live/support64/component/pk/view/e;"
}
.end annotation
# instance fields
.field private a:Landroid/view/View;
.field private b:Lrx/j;
# direct methods
.method public constructor <init>(Lsg/bigo/core/component/c;)V
.registers 2
.line 79
invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V
.line 80
new-instance p1, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;
invoke-direct {p1, p0}, Lsg/bigo/live/support64/component/pk/presenter/PkEntryPresenter;-><init>(Lsg/bigo/live/support64/component/pk/view/e;)V
iput-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->e:Lsg/bigo/core/mvp/presenter/a;
return-void
.end method
.method static synthetic a(Lsg/bigo/live/support64/component/pk/PkEntryComponent;Landroid/view/View;)V
.registers 6
const/high16 v0, 0x40a00000 # 5.0f
.line 4263
invoke-static {v0}, Lsg/bigo/common/k;->d(F)F
move-result v0
.line 4264
new-instance v1, Landroid/view/animation/TranslateAnimation;
const/4 v2, 0x0
invoke-direct {v1, v2, v2, v2, v0}, Landroid/view/animation/TranslateAnimation;-><init>(FFFF)V
const/4 v0, 0x4
.line 4265
invoke-virtual {v1, v0}, Landroid/view/animation/TranslateAnimation;->setRepeatCount(I)V
const/4 v0, 0x2
.line 4266
invoke-virtual {v1, v0}, Landroid/view/animation/TranslateAnimation;->setRepeatMode(I)V
const/4 v0, 0x1
.line 4267
invoke-virtual {v1, v0}, Landroid/view/animation/TranslateAnimation;->setFillAfter(Z)V
const-wide/16 v2, 0x12c
.line 4268
invoke-virtual {v1, v2, v3}, Landroid/view/animation/TranslateAnimation;->setDuration(J)V
.line 4269
new-instance v0, Lsg/bigo/live/support64/component/pk/PkEntryComponent$2;
invoke-direct {v0, p0, p1}, Lsg/bigo/live/support64/component/pk/PkEntryComponent$2;-><init>(Lsg/bigo/live/support64/component/pk/PkEntryComponent;Landroid/view/View;)V
invoke-virtual {v1, v0}, Landroid/view/animation/TranslateAnimation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
.line 4279
invoke-virtual {p1, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
return-void
.end method
.method private i()V
.registers 3
.line 169
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
if-eqz v0, :cond_33
.line 170
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;->E()I
move-result v0
const/4 v1, 0x5
if-ne v0, v1, :cond_19
.line 171
invoke-static {}, Lsg/bigo/live/support64/k/a;->i()Z
move-result v1
if-eqz v1, :cond_19
.line 172
invoke-static {}, Lsg/bigo/live/support64/k/a;->j()V
goto :goto_25
:cond_19
const/4 v1, 0x4
if-ne v0, v1, :cond_25
.line 173
invoke-static {}, Lsg/bigo/live/support64/k/a;->k()Z
move-result v0
if-eqz v0, :cond_25
.line 174
invoke-static {}, Lsg/bigo/live/support64/k/a;->l()V
.line 176
:cond_25
:goto_25
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
const v1, 0x7d0803a1
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 179
:cond_33
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->b:Lrx/j;
if-eqz v0, :cond_42
invoke-interface {v0}, Lrx/j;->isUnsubscribed()Z
move-result v0
if-nez v0, :cond_42
.line 180
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->b:Lrx/j;
invoke-interface {v0}, Lrx/j;->unsubscribe()V
:cond_42
return-void
.end method
# virtual methods
.method public final J_()V
.registers 1
return-void
.end method
.method public final a(Landroidx/lifecycle/LifecycleOwner;)V
.registers 2
.line 128
invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->a(Landroidx/lifecycle/LifecycleOwner;)V
.line 129
invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->i()V
return-void
.end method
.method public final a(Ljava/lang/String;)V
.registers 4
.line 204
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
const-string v1, "[PkEntryComponent][showNoPermission] reason "
invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "Revenue_Vs"
.line 2071
invoke-static {v1, v0}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V
const/4 v0, 0x0
.line 3026
invoke-static {p1, v0}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V
return-void
.end method
.method public final a(Ljava/util/Map;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
const-string v0, "Revenue_Vs"
const-string v1, "[PkEntryComponent][showSelfUserLevelDenied]"
.line 3071
invoke-static {v0, v1}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 211
sget-object v0, Lsg/bigo/live/support64/component/c/b;->a:Lsg/bigo/live/support64/component/c/b$a;
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->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;->l()Landroid/app/Activity;
move-result-object v0
const/4 v1, 0x3
invoke-static {v0, p1, v1}, Lsg/bigo/live/support64/component/c/b$a;->a(Landroid/app/Activity;Ljava/util/Map;I)V
return-void
.end method
.method public final a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lsg/bigo/core/component/a/b;",
"Landroid/util/SparseArray<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 105
sget-object p2, Lsg/bigo/live/support64/component/a/a;->EVENT_SHOW_PK_ENTRY:Lsg/bigo/live/support64/component/a/a;
if-ne p1, p2, :cond_46
.line 1143
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->h:Lsg/bigo/core/component/c/a;
check-cast p1, Lsg/bigo/live/support64/component/a;
const p2, 0x7d080438
invoke-interface {p1, p2}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/view/ViewStub;
if-eqz p1, :cond_16
.line 1145
invoke-static {p1}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/view/ViewStub;)Landroid/view/View;
.line 1147
:cond_16
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
if-nez p1, :cond_3d
.line 1148
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->h:Lsg/bigo/core/component/c/a;
check-cast p1, Lsg/bigo/live/support64/component/a;
const p2, 0x7d080214
invoke-interface {p1, p2}, Lsg/bigo/live/support64/component/a;->findViewById(I)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
const/4 p2, 0x0
const v0, 0x7d0802ae
if-eqz p1, :cond_31
.line 1151
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p2
:cond_31
if-eqz p2, :cond_3d
.line 1154
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object p1
const/4 p2, 0x4
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
.line 1157
:cond_3d
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
if-eqz p1, :cond_45
const/4 p2, 0x0
.line 1158
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
:cond_45
return-void
.line 107
:cond_46
sget-object p2, Lsg/bigo/live/support64/component/a/a;->EVENT_HIDE_PK_ENTRY:Lsg/bigo/live/support64/component/a/a;
if-ne p1, p2, :cond_54
.line 1163
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
if-eqz p1, :cond_53
const/16 p2, 0x8
.line 1164
invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V
:cond_53
return-void
.line 109
:cond_54
sget-object p2, Lsg/bigolive/revenue64/report/f;->PK_ENTRANCE_CLICK_EVENT:Lsg/bigolive/revenue64/report/f;
if-ne p1, p2, :cond_5b
.line 110
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->e()V
:cond_5b
return-void
.end method
.method public final a(Lsg/bigo/core/component/b/c;)V
.registers 3
.line 100
const-class v0, Lsg/bigo/live/support64/component/pk/c;
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 1
return-void
.end method
.method public final b(Lsg/bigo/core/component/b/c;)V
.registers 3
.line 95
const-class v0, Lsg/bigo/live/support64/component/pk/c;
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 3
const-string v0, "Revenue_Vs"
const-string v1, "[PkEntryComponent][checkPermissionAndStartPK] "
.line 4071
invoke-static {v0, v1}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 232
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->e:Lsg/bigo/core/mvp/presenter/a;
if-eqz v0, :cond_13
.line 233
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->e:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lsg/bigo/live/support64/component/pk/presenter/b;
const/4 v1, 0x1
invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/pk/presenter/b;->a(Z)V
:cond_13
return-void
.end method
.method public final d()V
.registers 5
.line 239
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->a:Landroid/view/View;
if-nez v0, :cond_5
return-void
:cond_5
const v1, 0x7d080391
.line 242
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
.line 243
invoke-virtual {v0}, Landroid/widget/TextView;->getVisibility()I
move-result v1
if-nez v1, :cond_15
return-void
:cond_15
const/4 v1, 0x0
.line 247
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setAlpha(F)V
const v1, 0x3dcccccd # 0.1f
.line 248
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setScaleX(F)V
.line 249
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setScaleY(F)V
const/4 v1, 0x0
.line 250
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
.line 251
invoke-virtual {v0}, Landroid/widget/TextView;->animate()Landroid/view/ViewPropertyAnimator;
move-result-object v1
const/high16 v2, 0x3f800000 # 1.0f
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;
move-result-object v1
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->scaleX(F)Landroid/view/ViewPropertyAnimator;
move-result-object v1
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;
move-result-object v1
const-wide/16 v2, 0x12c
invoke-virtual {v1, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;
move-result-object v1
new-instance v2, Lsg/bigo/live/support64/component/pk/PkEntryComponent$1;
invoke-direct {v2, p0, v0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent$1;-><init>(Lsg/bigo/live/support64/component/pk/PkEntryComponent;Landroid/widget/TextView;)V
.line 252
invoke-virtual {v1, v2}, Landroid/view/ViewPropertyAnimator;->setListener(Landroid/animation/Animator$AnimatorListener;)Landroid/view/ViewPropertyAnimator;
move-result-object v0
.line 259
invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->start()V
return-void
.end method
.method public final e()V
.registers 5
.line 117
invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->i()V
.line 118
new-instance v0, Lsg/bigo/live/support64/report/o$h;
invoke-direct {v0}, Lsg/bigo/live/support64/report/o$h;-><init>()V
const/16 v1, 0x1d
const-wide/16 v2, 0x0
.line 1594
invoke-virtual {v0, v1, v2, v3}, Lsg/bigo/live/support64/report/o$h;->a(IJ)V
.line 119
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->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;->k()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Llive/sg/bigo/svcapi/util/g;->d(Landroid/content/Context;)Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_2b
const v0, 0x7d0c01c9
new-array v2, v1, [Ljava/lang/Object;
.line 120
invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V
return-void
.line 123
:cond_2b
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->e:Lsg/bigo/core/mvp/presenter/a;
check-cast v0, Lsg/bigo/live/support64/component/pk/presenter/b;
invoke-interface {v0, v1}, Lsg/bigo/live/support64/component/pk/presenter/b;->a(Z)V
return-void
.end method
.method public final f()V
.registers 3
.line 186
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->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/pk/b;
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/pk/b;
if-eqz v0, :cond_18
.line 188
invoke-interface {v0}, Lsg/bigo/live/support64/component/pk/b;->e()V
.line 189
invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->i()V
:cond_18
return-void
.end method
.method public final g()V
.registers 3
.line 195
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->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/bigolive/revenue64/component/vsline/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/bigolive/revenue64/component/vsline/a;
if-eqz v0, :cond_18
.line 197
invoke-interface {v0}, Lsg/bigolive/revenue64/component/vsline/a;->c()V
.line 198
invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->i()V
:cond_18
return-void
.end method
.method public final h()V
.registers 3
.line 219
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->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/pk/b;
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/pk/b;
if-eqz v0, :cond_18
.line 221
invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/PkEntryComponent;->i()V
.line 222
invoke-interface {v0}, Lsg/bigo/live/support64/component/pk/b;->c()V
:cond_18
return-void
.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 135
sget-object v1, Lsg/bigo/live/support64/component/a/a;->EVENT_SHOW_PK_ENTRY:Lsg/bigo/live/support64/component/a/a;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lsg/bigo/live/support64/component/a/a;->EVENT_HIDE_PK_ENTRY:Lsg/bigo/live/support64/component/a/a;
const/4 v2, 0x1
aput-object v1, v0, v2
sget-object v1, Lsg/bigolive/revenue64/report/f;->PK_ENTRANCE_CLICK_EVENT:Lsg/bigolive/revenue64/report/f;
const/4 v2, 0x2
aput-object v1, v0, v2
return-object v0
.end method