h.smali

.class public final Lcom/live/share64/e/a/h;
.super Lsg/bigo/sdk/d/a;
.source "SourceFile"

# interfaces
.implements Lcom/live/share64/e/a/k;
.implements Lcom/live/share64/e/c;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/live/share64/e/a/h$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/sdk/d/a<",
        "Lcom/live/share64/e/a/i;",
        ">;",
        "Lcom/live/share64/e/a/k;",
        "Lcom/live/share64/e/c;"
    }
.end annotation


# static fields
# The value of this static final field might be set in the static constructor
.field public static final c:Ljava/lang/String; = "LoginModule"

.field public static final d:Lcom/live/share64/e/a/h$a;


# instance fields
.field a:Lcom/live/share64/e/a/j;

.field b:Lcom/live/share64/e/f;

.field private e:Lcom/live/share64/e/e;

.field private f:Lcom/live/share64/e/a/g;

.field private final g:Ljava/lang/Runnable;

.field private final h:J

.field private final i:Lcom/live/share64/d/f;


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/live/share64/e/a/h$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/live/share64/e/a/h$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/live/share64/e/a/h;->d:Lcom/live/share64/e/a/h$a;

    const-string v0, "LoginModule"

    .line 20
    sput-object v0, Lcom/live/share64/e/a/h;->c:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Lcom/live/share64/d/f;Lcom/live/share64/e/a/i;)V
    .registers 5

    const-string v0, "context"

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

    const-string v0, "linkdService"

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

    const-string v0, "profile"

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

    .line 16
    check-cast p3, Lsg/bigo/sdk/d/e;

    invoke-direct {p0, p1, p3}, Lsg/bigo/sdk/d/a;-><init>(Landroid/content/Context;Lsg/bigo/sdk/d/e;)V

    iput-object p2, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    .line 27
    new-instance p1, Lcom/live/share64/e/a/h$e;

    invoke-direct {p1, p0}, Lcom/live/share64/e/a/h$e;-><init>(Lcom/live/share64/e/a/h;)V

    check-cast p1, Ljava/lang/Runnable;

    iput-object p1, p0, Lcom/live/share64/e/a/h;->g:Ljava/lang/Runnable;

    const-wide/16 p1, 0x2710

    .line 28
    iput-wide p1, p0, Lcom/live/share64/e/a/h;->h:J

    return-void
.end method

.method public static final synthetic a(Lcom/live/share64/e/a/h;)Lcom/live/share64/e/a/j;
    .registers 1

    .line 15
    iget-object p0, p0, Lcom/live/share64/e/a/h;->a:Lcom/live/share64/e/a/j;

    return-object p0
.end method

.method static f()V
    .registers 2

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

    move-result-object v0

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

    move-result-object v1

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

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    if-nez v0, :cond_11

    return-void

    .line 65
    :cond_11
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "you should call login in main thread!"

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

    check-cast v0, Ljava/lang/Throwable;

    throw v0
.end method

.method private n()V
    .registers 3

    .line 89
    sget-object v0, Lcom/live/share64/e/a/h;->c:Ljava/lang/String;

    const-string v1, "cancelDelaySuspend"

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

    .line 90
    iget-object v0, p0, Lcom/live/share64/e/a/h;->g:Ljava/lang/Runnable;

    invoke-static {v0}, Lsg/bigo/common/ac;->d(Ljava/lang/Runnable;)V

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;)V
    .registers 4

    const-string v0, "msg"

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

    .line 106
    iget-object v0, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    if-nez v0, :cond_c

    invoke-static {}, Lkotlin/f/b/o;->a()V

    .line 2012
    :cond_c
    sget-object v1, Lcom/live/share64/c;->a:Lcom/live/share64/c;

    new-instance v1, Lcom/live/share64/e/f$a;

    invoke-direct {v1, v0, p1}, Lcom/live/share64/e/f$a;-><init>(Lcom/live/share64/e/f;Ljava/lang/String;)V

    check-cast v1, Ljava/lang/Runnable;

    invoke-static {v1}, Lcom/live/share64/c;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final a(Z)V
    .registers 4

    .line 98
    iget-object v0, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    if-nez v0, :cond_7

    invoke-static {}, Lkotlin/f/b/o;->a()V

    .line 1062
    :cond_7
    sget-object v1, Lcom/live/share64/c;->a:Lcom/live/share64/c;

    new-instance v1, Lcom/live/share64/e/f$f;

    invoke-direct {v1, v0, p1}, Lcom/live/share64/e/f$f;-><init>(Lcom/live/share64/e/f;Z)V

    check-cast v1, Ljava/lang/Runnable;

    invoke-static {v1}, Lcom/live/share64/c;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final al_()V
    .registers 9

    .line 31
    new-instance v7, Lcom/live/share64/e/e;

    invoke-virtual {p0}, Lcom/live/share64/e/a/h;->m()Landroid/content/Context;

    move-result-object v1

    .line 32
    iget-object v0, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    invoke-interface {v0}, Lcom/live/share64/d/f;->d()Llive/sg/bigo/svcapi/b/a;

    move-result-object v2

    iget-object v0, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    invoke-interface {v0}, Lcom/live/share64/d/f;->c()Llive/sg/bigo/svcapi/c/a;

    move-result-object v3

    iget-object v0, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    invoke-interface {v0}, Lcom/live/share64/d/f;->f()Lcom/live/share64/proto/b/h;

    move-result-object v4

    iget-object v0, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    invoke-interface {v0}, Lcom/live/share64/d/f;->e()Llive/sg/bigo/svcapi/f;

    move-result-object v5

    move-object v6, p0

    check-cast v6, Lcom/live/share64/e/c;

    move-object v0, v7

    .line 31
    invoke-direct/range {v0 .. v6}, Lcom/live/share64/e/e;-><init>(Landroid/content/Context;Llive/sg/bigo/svcapi/b/a;Llive/sg/bigo/svcapi/c/a;Lcom/live/share64/proto/b/h;Llive/sg/bigo/svcapi/f;Lcom/live/share64/e/c;)V

    iput-object v7, p0, Lcom/live/share64/e/a/h;->e:Lcom/live/share64/e/e;

    .line 33
    new-instance v0, Lcom/live/share64/e/f;

    if-nez v7, :cond_2e

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_2e
    invoke-direct {v0, v7}, Lcom/live/share64/e/f;-><init>(Lcom/live/share64/e/e;)V

    iput-object v0, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    .line 34
    new-instance v0, Lcom/live/share64/e/a/j;

    invoke-virtual {p0}, Lcom/live/share64/e/a/h;->l()Lsg/bigo/sdk/d/e;

    move-result-object v1

    check-cast v1, Lcom/live/share64/e/a/i;

    iget-object v2, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    check-cast v2, Lcom/live/share64/e/a;

    iget-object v3, p0, Lcom/live/share64/e/a/h;->i:Lcom/live/share64/d/f;

    invoke-interface {v3}, Lcom/live/share64/d/f;->f()Lcom/live/share64/proto/b/h;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/live/share64/e/a/j;-><init>(Lcom/live/share64/e/a/i;Lcom/live/share64/e/a;Lcom/live/share64/proto/b/h;)V

    iput-object v0, p0, Lcom/live/share64/e/a/h;->a:Lcom/live/share64/e/a/j;

    .line 35
    new-instance v0, Lcom/live/share64/e/a/g;

    invoke-virtual {p0}, Lcom/live/share64/e/a/h;->m()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    if-eqz v1, :cond_61

    check-cast v1, Landroid/app/Application;

    move-object v2, p0

    check-cast v2, Lcom/live/share64/e/a/k;

    invoke-direct {v0, v1, v2}, Lcom/live/share64/e/a/g;-><init>(Landroid/app/Application;Lcom/live/share64/e/a/k;)V

    iput-object v0, p0, Lcom/live/share64/e/a/h;->f:Lcom/live/share64/e/a/g;

    return-void

    :cond_61
    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type android.app.Application"

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

    throw v0
.end method

.method public final an_()V
    .registers 2

    .line 110
    new-instance v0, Lcom/live/share64/e/a/h$b;

    invoke-direct {v0, p0}, Lcom/live/share64/e/a/h$b;-><init>(Lcom/live/share64/e/a/h;)V

    check-cast v0, Ljava/lang/Runnable;

    invoke-static {v0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final c()V
    .registers 2

    .line 114
    new-instance v0, Lcom/live/share64/e/a/h$c;

    invoke-direct {v0, p0}, Lcom/live/share64/e/a/h$c;-><init>(Lcom/live/share64/e/a/h;)V

    check-cast v0, Ljava/lang/Runnable;

    invoke-static {v0}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final d()Lcom/live/share64/e/a/m;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/live/share64/e/a/m<",
            "Ljava/lang/Boolean;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    .line 42
    invoke-virtual {p0}, Lcom/live/share64/e/a/h;->e()Lcom/live/share64/e/a/m;

    move-result-object v0

    return-object v0
.end method

.method public final e()Lcom/live/share64/e/a/m;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/live/share64/e/a/m<",
            "Ljava/lang/Boolean;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation

    .line 47
    sget-object v0, Lcom/live/share64/e/a/h;->c:Ljava/lang/String;

    const-string v1, "loginInUIProcess"

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

    .line 48
    invoke-static {}, Lcom/live/share64/e/a/h;->f()V

    .line 49
    invoke-direct {p0}, Lcom/live/share64/e/a/h;->n()V

    .line 50
    iget-object v0, p0, Lcom/live/share64/e/a/h;->a:Lcom/live/share64/e/a/j;

    if-nez v0, :cond_14

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_14
    sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {v0, v1}, Lcom/live/share64/e/a/j;->c(Ljava/lang/Object;)Lcom/live/share64/e/a/m;

    move-result-object v0

    const-string v1, "mLoginSequence!!.execute(relogin)"

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

    return-object v0
.end method

.method public final g()V
    .registers 3

    .line 70
    sget-object v0, Lcom/live/share64/e/a/h;->c:Ljava/lang/String;

    const-string v1, "logout"

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

    .line 71
    iget-object v0, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    if-nez v0, :cond_e

    invoke-static {}, Lkotlin/f/b/o;->a()V

    .line 1030
    :cond_e
    sget-object v1, Lcom/live/share64/c;->a:Lcom/live/share64/c;

    new-instance v1, Lcom/live/share64/e/f$d;

    invoke-direct {v1, v0}, Lcom/live/share64/e/f$d;-><init>(Lcom/live/share64/e/f;)V

    check-cast v1, Ljava/lang/Runnable;

    invoke-static {v1}, Lcom/live/share64/c;->a(Ljava/lang/Runnable;)V

    .line 72
    iget-object v0, p0, Lcom/live/share64/e/a/h;->a:Lcom/live/share64/e/a/j;

    if-nez v0, :cond_21

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_21
    invoke-virtual {v0}, Lcom/live/share64/e/a/j;->c()V

    return-void
.end method

.method public final h()V
    .registers 4

    .line 84
    sget-object v0, Lcom/live/share64/e/a/h;->c:Ljava/lang/String;

    const-string v1, "delaySuspend"

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

    .line 85
    iget-object v0, p0, Lcom/live/share64/e/a/h;->g:Ljava/lang/Runnable;

    iget-wide v1, p0, Lcom/live/share64/e/a/h;->h:J

    invoke-static {v0, v1, v2}, Lsg/bigo/common/ac;->a(Ljava/lang/Runnable;J)V

    return-void
.end method

.method public final i()Lcom/live/share64/e/a/f;
    .registers 2

    .line 94
    iget-object v0, p0, Lcom/live/share64/e/a/h;->f:Lcom/live/share64/e/a/g;

    if-nez v0, :cond_7

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_7
    check-cast v0, Lcom/live/share64/e/a/f;

    return-object v0
.end method

.method public final j()V
    .registers 3

    .line 102
    iget-object v0, p0, Lcom/live/share64/e/a/h;->b:Lcom/live/share64/e/f;

    if-nez v0, :cond_7

    invoke-static {}, Lkotlin/f/b/o;->a()V

    .line 1068
    :cond_7
    sget-object v1, Lcom/live/share64/c;->a:Lcom/live/share64/c;

    new-instance v1, Lcom/live/share64/e/f$b;

    invoke-direct {v1, v0}, Lcom/live/share64/e/f$b;-><init>(Lcom/live/share64/e/f;)V

    check-cast v1, Ljava/lang/Runnable;

    invoke-static {v1}, Lcom/live/share64/c;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public final k()Lcom/live/share64/proto/f/c;
    .registers 3

    .line 118
    iget-object v0, p0, Lcom/live/share64/e/a/h;->e:Lcom/live/share64/e/e;

    if-nez v0, :cond_7

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_7
    invoke-virtual {v0}, Lcom/live/share64/e/e;->h()Lcom/live/share64/proto/f/c;

    move-result-object v0

    const-string v1, "this.mLoginManager!!.sdkConfigManager"

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

    return-object v0
.end method