LivePKGuideComponent.smali

.class public final Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/live/support64/component/pk/a;


# 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/pk/a;"
    }
.end annotation


# instance fields
.field private final a:Ljava/lang/String;

.field private b:Lrx/j;

.field private c:J

.field private d:J


# direct methods
.method public constructor <init>(Lsg/bigo/core/component/c;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lsg/bigo/core/component/c<",
            "*>;)V"
        }
    .end annotation

    const-string v0, "help"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

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

    const-string p1, "[PKGuide]"

    .line 38
    iput-object p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->a:Ljava/lang/String;

    return-void
.end method

.method public static final synthetic a(Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;)Lsg/bigo/live/support64/component/a;
    .registers 1

    .line 36
    iget-object p0, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->h:Lsg/bigo/core/component/c/a;

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

    return-object p0
.end method

.method public static final synthetic b(Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;)Ljava/lang/String;
    .registers 1

    .line 36
    iget-object p0, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->a:Ljava/lang/String;

    return-object p0
.end method

.method private final c()V
    .registers 5

    .line 137
    iget-object v0, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->h:Lsg/bigo/core/component/c/a;

    const-string v1, "mActivityServiceWrapper"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

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

    invoke-interface {v0}, Lsg/bigo/live/support64/component/a;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v0

    const-string v1, "LivePKGuideDialog"

    const-string v2, "LiveStartNextPKDialog"

    const-string v3, "PKMatch"

    .line 140
    filled-new-array {v1, v2, v3}, [Ljava/lang/String;

    move-result-object v1

    .line 137
    invoke-static {v0, v1}, Lsg/bigo/live/support64/utils/h;->a(Landroidx/fragment/app/FragmentManager;[Ljava/lang/String;)V

    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 105
    invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->a(Landroidx/lifecycle/LifecycleOwner;)V

    .line 106
    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->b:Lrx/j;

    if-eqz p1, :cond_a

    invoke-interface {p1}, Lrx/j;->unsubscribe()V

    :cond_a
    return-void
.end method

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

    const-string p2, "p0"

    invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

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

    const-string v0, "userinfo"

    const/4 v1, 0x0

    if-ne p1, p2, :cond_63

    .line 1503
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p1

    const-string p2, "key_is_new_user_for_pk"

    .line 1504
    invoke-interface {p1, p2, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p1

    const/16 p2, 0xa

    if-eqz p1, :cond_2d

    .line 1514
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p1

    const-string v0, "key_start_pk_time_for_new"

    .line 1515
    invoke-interface {p1, v0, p2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result p1

    goto :goto_3b

    .line 2493
    :cond_2d
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p1

    const-string v0, "key_start_pk_time"

    .line 2494
    invoke-interface {p1, v0, p2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result p1

    :goto_3b
    int-to-long p1, p1

    .line 1119
    sget-object v0, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-static {p1, p2, v0}, Lrx/c;->b(JLjava/util/concurrent/TimeUnit;)Lrx/c;

    move-result-object p1

    .line 1120
    invoke-static {}, Lrx/a/b/a;->a()Lrx/f;

    move-result-object p2

    invoke-virtual {p1, p2}, Lrx/c;->a(Lrx/f;)Lrx/c;

    move-result-object p1

    .line 1121
    new-instance p2, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent$a;

    invoke-direct {p2, p0}, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent$a;-><init>(Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;)V

    check-cast p2, Lrx/b/f;

    invoke-virtual {p1, p2}, Lrx/c;->c(Lrx/b/f;)Lrx/c;

    move-result-object p1

    .line 1126
    new-instance p2, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent$b;

    invoke-direct {p2, p0}, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent$b;-><init>(Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;)V

    check-cast p2, Lrx/b/b;

    invoke-virtual {p1, p2}, Lrx/c;->c(Lrx/b/b;)Lrx/j;

    move-result-object p1

    iput-object p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->b:Lrx/j;

    return-void

    .line 76
    :cond_63
    sget-object p2, Lsg/bigo/live/support64/component/a/a;->EVENT_LIVE_END:Lsg/bigo/live/support64/component/a/a;

    if-eq p1, p2, :cond_16a

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

    if-ne p1, p2, :cond_6d

    goto/16 :goto_16a

    .line 80
    :cond_6d
    sget-object p2, Lsg/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_CONNECT:Lsg/bigolive/revenue64/a/d;

    const-string v2, "Revenue_Vs"

    if-ne p1, p2, :cond_a3

    .line 81
    invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c()V

    .line 82
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide p1

    iput-wide p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c:J

    .line 83
    invoke-static {}, Lsg/bigolive/revenue64/component/vsshow/b;->c()J

    move-result-wide p1

    iput-wide p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->d:J

    .line 84
    new-instance p1, Ljava/lang/StringBuilder;

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

    iget-object p2, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->a:Ljava/lang/String;

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

    const-string p2, ":[REVENUE_EVENT_VS_LINE_CONNECT] toUid:"

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

    iget-wide v0, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->d:J

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

    const/16 p2, 0x20

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

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

    move-result-object p1

    .line 3071
    invoke-static {v2, p1}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    .line 86
    :cond_a3
    sget-object p2, Lsg/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_DISCONNECT:Lsg/bigolive/revenue64/a/d;

    if-ne p1, p2, :cond_169

    .line 87
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide p1

    iget-wide v3, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c:J

    sub-long/2addr p1, v3

    .line 88
    iget-object v3, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->h:Lsg/bigo/core/component/c/a;

    const-string v4, "mActivityServiceWrapper"

    invoke-static {v3, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

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

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

    move-result-object v3

    const-class v5, Lsg/bigo/live/support64/component/roomwidget/livefinish/b;

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

    move-result-object v3

    check-cast v3, Lsg/bigo/live/support64/component/roomwidget/livefinish/b;

    .line 89
    new-instance v5, Ljava/lang/StringBuilder;

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

    iget-object v6, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->a:Ljava/lang/String;

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

    const-string v6, " vs line disconnect, duration:["

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

    invoke-virtual {v5, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v6, "], liveFinishShow = ["

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

    const/4 v6, 0x0

    if-eqz v3, :cond_e6

    invoke-interface {v3}, Lsg/bigo/live/support64/component/roomwidget/livefinish/b;->d()Z

    move-result v7

    invoke-static {v7}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v7

    goto :goto_e7

    :cond_e6
    move-object v7, v6

    :goto_e7
    invoke-virtual {v5, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const/16 v7, 0x5d

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

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

    move-result-object v5

    .line 4071
    invoke-static {v2, v5}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 90
    iget-wide v7, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c:J

    const-wide/16 v9, 0x0

    cmp-long v2, v7, v9

    if-eqz v2, :cond_169

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

    move-result-object v2

    const-string v5, "ISessionHelper.state()"

    invoke-static {v2, v5}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

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

    move-result v2

    if-nez v2, :cond_10e

    goto :goto_169

    :cond_10e
    if-eqz v3, :cond_117

    .line 93
    invoke-interface {v3}, Lsg/bigo/live/support64/component/roomwidget/livefinish/b;->d()Z

    move-result v2

    if-eqz v2, :cond_117

    return-void

    .line 4525
    :cond_117
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const/16 v2, 0x96

    const-string v3, "key_total_pk_time"

    .line 4526
    invoke-interface {v0, v3, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    mul-int/lit16 v0, v0, 0x3e8

    int-to-long v2, v0

    cmp-long v0, p1, v2

    if-ltz v0, :cond_166

    .line 97
    sget-object p1, Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog;->d:Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog$a;

    iget-object p1, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->h:Lsg/bigo/core/component/c/a;

    invoke-static {p1, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

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

    invoke-interface {p1}, Lsg/bigo/live/support64/component/a;->k()Landroid/content/Context;

    move-result-object p1

    iget-wide v2, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->d:J

    .line 5042
    new-instance p2, Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog;

    invoke-direct {p2}, Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog;-><init>()V

    .line 5052
    iput-wide v2, p2, Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog;->c:J

    .line 5044
    instance-of v0, p1, Landroidx/fragment/app/FragmentActivity;

    if-nez v0, :cond_149

    goto :goto_14a

    :cond_149
    move-object v6, p1

    :goto_14a
    check-cast v6, Landroidx/fragment/app/FragmentActivity;

    if-eqz v6, :cond_166

    .line 5045
    new-instance p1, Lsg/bigo/live/support64/report/o$ag;

    invoke-direct {p1}, Lsg/bigo/live/support64/report/o$ag;-><init>()V

    invoke-virtual {p1, v1}, Lsg/bigo/live/support64/report/o$ag;->a(I)V

    .line 5046
    invoke-virtual {v6}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object p1

    const-string v0, "LiveStartNextPKDialog"

    invoke-virtual {p2, p1, v0}, Lsg/bigo/live/support64/component/pk/view/LiveStartNextPKDialog;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V

    .line 5047
    invoke-virtual {v6}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object p1

    invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->executePendingTransactions()Z

    .line 99
    :cond_166
    iput-wide v9, p0, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c:J

    nop

    :cond_169
    :goto_169
    return-void

    .line 78
    :cond_16a
    :goto_16a
    invoke-direct {p0}, Lsg/bigo/live/support64/component/pk/LivePKGuideComponent;->c()V

    return-void
.end method

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

    const-string v0, "p0"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 64
    const-class v0, Lsg/bigo/live/support64/component/pk/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 4

    const-string v0, "http://video.like.video/asia_live/7h6/M0B/CE/56/6fsbAF5kk8eELu9hAAAAACKO4eQ334.png?crc=579789284&type=5"

    .line 49
    invoke-static {v0}, Lcom/facebook/common/util/UriUtil;->parseUriOrNull(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-static {v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->newBuilderWithSource(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->build()Lcom/facebook/imagepipeline/request/ImageRequest;

    move-result-object v0

    .line 50
    invoke-static {}, Lcom/facebook/drawee/backends/pipeline/Fresco;->getImagePipeline()Lcom/facebook/imagepipeline/core/ImagePipeline;

    move-result-object v1

    const/4 v2, 0x0

    .line 51
    invoke-virtual {v1, v0, v2}, Lcom/facebook/imagepipeline/core/ImagePipeline;->prefetchToBitmapCache(Lcom/facebook/imagepipeline/request/ImageRequest;Ljava/lang/Object;)Lcom/facebook/datasource/DataSource;

    return-void
.end method

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

    const-string v0, "p0"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 68
    const-class v0, Lsg/bigo/live/support64/component/pk/a;

    move-object v1, p0

    check-cast v1, Lsg/bigo/core/component/b/b;

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

    return-void
.end method

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

    const/4 v0, 0x5

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

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

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x0

    aput-object v1, v0, v2

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

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x1

    aput-object v1, v0, v2

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

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x2

    aput-object v1, v0, v2

    .line 59
    sget-object v1, Lsg/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_CONNECT:Lsg/bigolive/revenue64/a/d;

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x3

    aput-object v1, v0, v2

    .line 60
    sget-object v1, Lsg/bigolive/revenue64/a/d;->REVENUE_EVENT_VS_LINE_DISCONNECT:Lsg/bigolive/revenue64/a/d;

    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x4

    aput-object v1, v0, v2

    return-object v0
.end method