WalletController.smali
.class public Lim/tpelyyftgw/ui/activities/wallet/WalletController;
.super Lim/tpelyyftgw/messenger/BaseController;
.source "WalletController.java"
# static fields
.field private static volatile Instance:[Lim/tpelyyftgw/ui/activities/wallet/WalletController;
# instance fields
.field private accountInfo:Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
.field private final sync:Ljava/lang/Object;
# direct methods
.method static constructor <clinit>()V
.registers 1
.line 16
const/4 v0, 0x3
new-array v0, v0, [Lim/tpelyyftgw/ui/activities/wallet/WalletController;
sput-object v0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->Instance:[Lim/tpelyyftgw/ui/activities/wallet/WalletController;
return-void
.end method
.method public constructor <init>(I)V
.registers 3
.param p1, "num" # I
.line 38
invoke-direct {p0, p1}, Lim/tpelyyftgw/messenger/BaseController;-><init>(I)V
.line 33
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
iput-object v0, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->sync:Ljava/lang/Object;
.line 39
return-void
.end method
.method public static getInstance(I)Lim/tpelyyftgw/ui/activities/wallet/WalletController;
.registers 5
.param p0, "num" # I
.line 20
sget-object v0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->Instance:[Lim/tpelyyftgw/ui/activities/wallet/WalletController;
aget-object v0, v0, p0
.line 21
.local v0, "localInstance":Lim/tpelyyftgw/ui/activities/wallet/WalletController;
if-nez v0, :cond_1f
.line 22
const-class v1, Lim/tpelyyftgw/ui/activities/wallet/WalletController;
monitor-enter v1
.line 23
:try_start_9
sget-object v2, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->Instance:[Lim/tpelyyftgw/ui/activities/wallet/WalletController;
aget-object v2, v2, p0
move-object v0, v2
.line 24
if-nez v0, :cond_1a
.line 25
sget-object v2, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->Instance:[Lim/tpelyyftgw/ui/activities/wallet/WalletController;
new-instance v3, Lim/tpelyyftgw/ui/activities/wallet/WalletController;
invoke-direct {v3, p0}, Lim/tpelyyftgw/ui/activities/wallet/WalletController;-><init>(I)V
move-object v0, v3
aput-object v3, v2, p0
.line 27
:cond_1a
monitor-exit v1
goto :goto_1f
:catchall_1c
move-exception v2
monitor-exit v1
:try_end_1e
.catchall {:try_start_9 .. :try_end_1e} :catchall_1c
throw v2
.line 29
:cond_1f
:goto_1f
return-object v0
.end method
# virtual methods
.method public cleanup()V
.registers 2
.line 42
const/4 v0, 0x0
iput-object v0, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->accountInfo:Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
.line 43
return-void
.end method
.method public getAccountInfo()Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
.registers 3
.line 54
iget-object v0, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->sync:Ljava/lang/Object;
monitor-enter v0
.line 55
:try_start_3
iget-object v1, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->accountInfo:Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
monitor-exit v0
return-object v1
.line 56
:catchall_7
move-exception v1
monitor-exit v0
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v1
.end method
.method public setAccountInfo(Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;)V
.registers 4
.param p1, "newAccountInfo" # Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
.line 47
iget-object v0, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->sync:Ljava/lang/Object;
monitor-enter v0
.line 48
:try_start_3
iput-object p1, p0, Lim/tpelyyftgw/ui/activities/wallet/WalletController;->accountInfo:Lim/tpelyyftgw/ui/hui/wallet_public/bean/WalletAccountInfo;
.line 49
monitor-exit v0
.line 50
return-void
.line 49
:catchall_7
move-exception v1
monitor-exit v0
:try_end_9
.catchall {:try_start_3 .. :try_end_9} :catchall_7
throw v1
.end method