PartyDressService.smali
.class public Lcom/sandboxol/blockymods/service/PartyDressService;
.super Ljava/lang/Object;
.source "PartyDressService.java"
# interfaces
.implements Lcom/sandboxol/center/router/moduleApi/IPartyDressService;
# annotations
.annotation build Lcom/alibaba/android/arouter/facade/annotation/Route;
path = "/partydress/service"
.end annotation
# static fields
.field private static final a:Ljava/lang/String; = "com.sandboxol.blockymods.service.PartyDressService"
# instance fields
.field private b:Landroid/content/Context;
.field private c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
.field private d:Landroid/view/ViewGroup;
.field private e:Ljava/util/Queue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue<",
"Lrx/functions/Action0;",
">;"
}
.end annotation
.end field
.field private f:Ljava/lang/String;
.field private g:Z
# direct methods
.method public constructor <init>()V
.registers 2
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
.line 3
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->e:Ljava/util/Queue;
const-string v0, "party_default_bg_4.png"
.line 4
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->f:Ljava/lang/String;
const/4 v0, 0x0
.line 5
iput-boolean v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->g:Z
return-void
.end method
.method private a(Landroid/content/Context;JLjava/lang/String;)V
.registers 12
.line 7
new-instance v6, Lcom/sandboxol/blockymods/service/e;
move-object v0, v6
move-object v1, p0
move-wide v2, p2
move-object v4, p4
move-object v5, p1
invoke-direct/range {v0 .. v5}, Lcom/sandboxol/blockymods/service/e;-><init>(Lcom/sandboxol/blockymods/service/PartyDressService;JLjava/lang/String;Landroid/content/Context;)V
invoke-static {p1, p2, p3, v6}, Lcom/sandboxol/repository/dress/web/o;->b(Landroid/content/Context;JLcom/sandboxol/common/base/web/OnResponseListener;)V
return-void
.end method
.method private a(Landroidx/databinding/ObservableMap;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/databinding/ObservableMap<",
"Ljava/lang/Long;",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 8
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_32
if-eqz p1, :cond_32
.line 9
:try_start_6
invoke-interface {p1}, Ljava/util/Map;->size()I
move-result v0
if-nez v0, :cond_d
goto :goto_32
.line 10
:cond_d
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_15
:goto_15
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_32
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 11
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_15
.line 12
iget-object v1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-static {v1, v0}, Lcom/sandboxol/blockymods/utils/ea;->a(Lcom/sandboxol/clothes/EchoesGLSurfaceView;Ljava/lang/String;)V
:try_end_2c
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_2c} :catch_2d
goto :goto_15
:catch_2d
move-exception p1
.line 13
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
nop
:cond_32
:goto_32
return-void
.end method
.method private a(Landroidx/databinding/ObservableMap;Ljava/lang/String;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/databinding/ObservableMap<",
"Ljava/lang/Long;",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 26
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_32
if-eqz p1, :cond_32
.line 27
:try_start_6
invoke-interface {p1}, Ljava/util/Map;->size()I
move-result v0
if-nez v0, :cond_d
goto :goto_32
.line 28
:cond_d
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p1
invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_15
:goto_15
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_32
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 29
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_15
.line 30
iget-object v1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-static {v1, v0, p2}, Lcom/sandboxol/blockymods/utils/ea;->a(Lcom/sandboxol/clothes/EchoesGLSurfaceView;Ljava/lang/String;Ljava/lang/String;)V
:try_end_2c
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_2c} :catch_2d
goto :goto_15
:catch_2d
move-exception p1
.line 31
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
nop
:cond_32
:goto_32
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/service/PartyDressService;Landroidx/databinding/ObservableMap;)V
.registers 2
.line 2
invoke-direct {p0, p1}, Lcom/sandboxol/blockymods/service/PartyDressService;->a(Landroidx/databinding/ObservableMap;)V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/service/PartyDressService;Landroidx/databinding/ObservableMap;Ljava/lang/String;)V
.registers 3
.line 4
invoke-direct {p0, p1, p2}, Lcom/sandboxol/blockymods/service/PartyDressService;->a(Landroidx/databinding/ObservableMap;Ljava/lang/String;)V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/service/PartyDressService;Ljava/util/List;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/sandboxol/blockymods/service/PartyDressService;->a(Ljava/util/List;)V
return-void
.end method
.method static synthetic a(Lcom/sandboxol/blockymods/service/PartyDressService;Ljava/util/List;Ljava/lang/String;)V
.registers 3
.line 3
invoke-direct {p0, p1, p2}, Lcom/sandboxol/blockymods/service/PartyDressService;->a(Ljava/util/List;Ljava/lang/String;)V
return-void
.end method
.method private a(Ljava/util/List;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
.line 14
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_2e
if-eqz p1, :cond_2e
.line 15
:try_start_6
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_d
goto :goto_2e
.line 16
:cond_d
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_11
:goto_11
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2e
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 17
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_11
.line 18
iget-object v1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-static {v1, v0}, Lcom/sandboxol/blockymods/utils/ea;->a(Lcom/sandboxol/clothes/EchoesGLSurfaceView;Ljava/lang/String;)V
:try_end_28
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_28} :catch_29
goto :goto_11
:catch_29
move-exception p1
.line 19
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
nop
:cond_2e
:goto_2e
return-void
.end method
.method private a(Ljava/util/List;Ljava/lang/String;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 20
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_2e
if-eqz p1, :cond_2e
.line 21
:try_start_6
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_d
goto :goto_2e
.line 22
:cond_d
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_11
:goto_11
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2e
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
.line 23
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_11
.line 24
iget-object v1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-static {v1, v0, p2}, Lcom/sandboxol/blockymods/utils/ea;->a(Lcom/sandboxol/clothes/EchoesGLSurfaceView;Ljava/lang/String;Ljava/lang/String;)V
:try_end_28
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_28} :catch_29
goto :goto_11
:catch_29
move-exception p1
.line 25
invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
nop
:cond_2e
:goto_2e
return-void
.end method
.method private b()V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->e:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 2
:goto_6
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_16
.line 3
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lrx/functions/Action0;
.line 4
invoke-interface {v1}, Lrx/functions/Action0;->call()V
goto :goto_6
.line 5
:cond_16
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->e:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->clear()V
return-void
.end method
# virtual methods
.method public synthetic a()V
.registers 2
.line 5
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 6
invoke-direct {p0}, Lcom/sandboxol/blockymods/service/PartyDressService;->b()V
:cond_7
return-void
.end method
.method public addMember(Lcom/sandboxol/greendao/entity/TeamMember;)V
.registers 7
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_a4
.line 2
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getUserId()J
move-result-wide v0
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v2
iget-object v2, v2, Lcom/sandboxol/center/entity/AccountCenter;->userId:Landroidx/databinding/ObservableField;
invoke-virtual {v2}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Long;
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
cmp-long v4, v0, v2
if-nez v4, :cond_4d
.line 3
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getSex()I
move-result v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeSex(I)V
.line 4
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeName(Ljava/lang/String;)V
.line 5
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->isCaptain()Z
move-result v0
if-eqz v0, :cond_3d
.line 6
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleChangePartyOwner(Ljava/lang/String;)V
.line 7
:cond_3d
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getVip()I
move-result v0
if-eqz v0, :cond_97
.line 8
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getVip()I
move-result v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeVipLevel(I)V
goto :goto_97
.line 9
:cond_4d
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleAddActorDisplay(Ljava/lang/String;)V
.line 10
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getSex()I
move-result v1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeSexOtherPlayer(ILjava/lang/String;)V
.line 11
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->isCaptain()Z
move-result v0
if-eqz v0, :cond_72
.line 12
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleChangePartyOwner(Ljava/lang/String;)V
.line 13
:cond_72
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getVip()I
move-result v0
if-eqz v0, :cond_85
.line 14
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getVip()I
move-result v1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v1, v2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeVipLevelOtherPlayer(ILjava/lang/String;)V
.line 15
:cond_85
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getStatus()I
move-result v2
const/4 v3, 0x1
if-ne v2, v3, :cond_93
goto :goto_94
:cond_93
const/4 v3, 0x0
:goto_94
invoke-virtual {v0, v1, v3}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeOnGameState(Ljava/lang/String;Z)V
.line 16
:cond_97
:goto_97
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->b:Landroid/content/Context;
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getUserId()J
move-result-wide v1
invoke-virtual {p1}, Lcom/sandboxol/greendao/entity/TeamMember;->getNickName()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, v0, v1, v2, p1}, Lcom/sandboxol/blockymods/service/PartyDressService;->a(Landroid/content/Context;JLjava/lang/String;)V
:cond_a4
return-void
.end method
.method public changeBackground(Ljava/lang/String;)V
.registers 3
.line 1
iput-object p1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->f:Ljava/lang/String;
.line 2
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_9
.line 3
invoke-virtual {v0, p1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeBackgroundImage(Ljava/lang/String;)V
:cond_9
return-void
.end method
.method public changeMode(II)V
.registers 4
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1, p2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleChangeMode(II)V
:cond_7
return-void
.end method
.method public changeOnGameState(Ljava/lang/String;Z)V
.registers 4
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1, p2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeOnGameState(Ljava/lang/String;Z)V
:cond_7
return-void
.end method
.method public changePartyOwner(Ljava/lang/String;)V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleChangePartyOwner(Ljava/lang/String;)V
:cond_7
return-void
.end method
.method public changeSex(I)V
.registers 3
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeSex(I)V
:cond_7
return-void
.end method
.method public changeSexOtherPlayer(ILjava/lang/String;)V
.registers 4
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1, p2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->changeSexOtherPlayer(ILjava/lang/String;)V
:cond_7
return-void
.end method
.method public getPartyDress()Z
.registers 2
.line 1
iget-boolean v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->g:Z
return v0
.end method
.method public synthetic init(Landroid/content/Context;)V
.registers 2
invoke-static {p0, p1}, Lcom/sandboxol/center/router/moduleApi/a;->a(Lcom/sandboxol/center/router/moduleApi/IBaseService;Landroid/content/Context;)V
return-void
.end method
.method public onCreate(Landroid/content/Context;)V
.registers 5
.line 1
iput-object p1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->b:Landroid/content/Context;
.line 2
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-nez v0, :cond_61
.line 3
new-instance v0, Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-static {}, Lcom/sandboxol/common/base/app/BaseApplication;->getContext()Landroid/content/Context;
move-result-object v1
invoke-direct {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
.line 4
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
new-instance v1, Lcom/sandboxol/clothes/EchoesRenderer;
invoke-direct {v1, p1}, Lcom/sandboxol/clothes/EchoesRenderer;-><init>(Landroid/content/Context;)V
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->setEchoesRenderer(Lcom/sandboxol/clothes/EchoesRenderer;)V
.line 5
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v0
iget-object v0, v0, Lcom/sandboxol/center/entity/AccountCenter;->login:Landroidx/databinding/ObservableField;
invoke-virtual {v0}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_48
.line 6
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
new-instance v1, Lcom/sandboxol/clothes/EchoesHandler;
invoke-static {}, Lcom/sandboxol/center/entity/AccountCenter;->newInstance()Lcom/sandboxol/center/entity/AccountCenter;
move-result-object v2
iget-object v2, v2, Lcom/sandboxol/center/entity/AccountCenter;->sex:Landroidx/databinding/ObservableField;
invoke-virtual {v2}, Landroidx/databinding/ObservableField;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/Integer;
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v2
invoke-direct {v1, p1, v0, v2}, Lcom/sandboxol/clothes/EchoesHandler;-><init>(Landroid/content/Context;Lcom/sandboxol/clothes/EchoesGLSurfaceView;I)V
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->setMainHandler(Lcom/sandboxol/clothes/EchoesHandler;)V
goto :goto_53
.line 7
:cond_48
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
new-instance v1, Lcom/sandboxol/clothes/EchoesHandler;
const/4 v2, 0x1
invoke-direct {v1, p1, v0, v2}, Lcom/sandboxol/clothes/EchoesHandler;-><init>(Landroid/content/Context;Lcom/sandboxol/clothes/EchoesGLSurfaceView;I)V
invoke-virtual {v0, v1}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->setMainHandler(Lcom/sandboxol/clothes/EchoesHandler;)V
.line 8
:goto_53
invoke-static {}, Lcom/sandboxol/common/messenger/Messenger;->getDefault()Lcom/sandboxol/common/messenger/Messenger;
move-result-object v0
new-instance v1, Lcom/sandboxol/blockymods/service/a;
invoke-direct {v1, p0}, Lcom/sandboxol/blockymods/service/a;-><init>(Lcom/sandboxol/blockymods/service/PartyDressService;)V
const-string v2, "token.decoration.init.finish"
invoke-virtual {v0, p1, v2, v1}, Lcom/sandboxol/common/messenger/Messenger;->register(Landroid/content/Context;Ljava/lang/Object;Lrx/functions/Action0;)V
:cond_61
return-void
.end method
.method public onDestroy()V
.registers 2
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_c
.line 2
invoke-virtual {v0}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->onDestroy()V
const/4 v0, 0x0
.line 3
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
.line 4
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
:cond_c
const/4 v0, 0x0
.line 5
iput-boolean v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->g:Z
.line 6
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->e:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->clear()V
return-void
.end method
.method public onPauseByGroupView(Landroid/view/ViewGroup;)V
.registers 4
const/4 v0, 0x0
.line 1
:try_start_1
iput-boolean v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->g:Z
.line 2
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
if-eqz v0, :cond_21
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
if-ne v0, p1, :cond_21
.line 3
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
iget-object v1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
const/4 v0, 0x0
.line 4
iput-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
:try_end_15
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_15} :catch_16
goto :goto_21
.line 5
:catch_16
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object p1
sget-object v0, Lcom/sandboxol/blockymods/service/PartyDressService;->a:Ljava/lang/String;
const-string v1, "on_pause_exception"
invoke-static {p1, v1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
:cond_21
:goto_21
return-void
.end method
.method public onResumeByViewGroup(Landroid/content/Context;Landroid/view/ViewGroup;Lrx/functions/Action0;)V
.registers 5
.line 1
invoke-static {}, Lcom/sandboxol/center/router/manager/DressManager;->isLoadDressResOk()Z
move-result v0
if-nez v0, :cond_7
return-void
:cond_7
const/4 v0, 0x1
.line 2
:try_start_8
iput-boolean v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->g:Z
.line 3
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->e:Ljava/util/Queue;
invoke-interface {v0, p3}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
.line 4
iget-object p3, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
if-nez p3, :cond_2d
.line 5
iget-object p3, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-nez p3, :cond_1a
.line 6
invoke-virtual {p0, p1}, Lcom/sandboxol/blockymods/service/PartyDressService;->onCreate(Landroid/content/Context;)V
.line 7
:cond_1a
iget-object p1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
invoke-virtual {p2, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
.line 8
iput-object p2, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->d:Landroid/view/ViewGroup;
:try_end_21
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_21} :catch_22
goto :goto_2d
.line 9
:catch_22
invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object p1
sget-object p2, Lcom/sandboxol/blockymods/service/PartyDressService;->a:Ljava/lang/String;
const-string p3, "on_resume_exception"
invoke-static {p1, p3, p2}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
:cond_2d
:goto_2d
return-void
.end method
.method public removeMember(JLjava/lang/String;)V
.registers 4
.line 1
iget-object p1, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz p1, :cond_7
.line 2
invoke-virtual {p1, p3}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleDeleteActorDisplay(Ljava/lang/String;)V
:cond_7
return-void
.end method
.method public sendChat(Ljava/lang/String;Ljava/lang/String;)V
.registers 4
.line 1
iget-object v0, p0, Lcom/sandboxol/blockymods/service/PartyDressService;->c:Lcom/sandboxol/clothes/EchoesGLSurfaceView;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1, p2}, Lcom/sandboxol/clothes/EchoesGLSurfaceView;->handleChat(Ljava/lang/String;Ljava/lang/String;)V
:cond_7
return-void
.end method