SubSmarthomeFragment$5.smali
.class Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;
.super Lcom/sdk/orion/callback/ContentCallBack;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->getDataFromService(Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/sdk/orion/callback/ContentCallBack",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
.field final synthetic val$refreshFinish:Z
# direct methods
.method constructor <init>(Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;Z)V
.registers 3
iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
iput-boolean p2, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->val$refreshFinish:Z
invoke-direct {p0}, Lcom/sdk/orion/callback/ContentCallBack;-><init>()V
return-void
.end method
# virtual methods
.method public onFailed(ILjava/lang/String;)V
.registers 4
iget-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->val$refreshFinish:Z
if-eqz v0, :cond_9
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->onRefreshFinish()V
:cond_9
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->showRetryView()V
return-void
.end method
.method public bridge synthetic onSucceed(Ljava/lang/Object;)V
.registers 2
check-cast p1, Ljava/lang/String;
invoke-virtual {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->onSucceed(Ljava/lang/String;)V
return-void
.end method
.method public onSucceed(Ljava/lang/String;)V
.registers 4
new-instance v0, Lcom/a/b/f/d;
invoke-direct {v0}, Lcom/a/b/f/d;-><init>()V
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5$1;
invoke-direct {v1, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5$1;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;)V
invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5$1;->getType()Ljava/lang/reflect/Type;
move-result-object v1
invoke-virtual {v0, p1, v1}, Lcom/a/b/f/d;->a(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/List;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->showContentView()V
iget-boolean v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->val$refreshFinish:Z
if-eqz v1, :cond_22
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->onRefreshFinish()V
:cond_22
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
# getter for: Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->mSmartHomeList:Ljava/util/List;
invoke-static {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->access$100(Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;)Ljava/util/List;
move-result-object v1
invoke-interface {v1}, Ljava/util/List;->clear()V
if-eqz v0, :cond_33
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_4e
:cond_33
# getter for: Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->TAG:Ljava/lang/String;
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->access$200()Ljava/lang/String;
move-result-object v0
const-string/jumbo v1, "device empty"
invoke-static {v0, v1}, Lcom/cmcm/xiaobao/phone/commons/log/LogUtil;->d(Ljava/lang/String;Ljava/lang/String;)V
:cond_3d
:goto_3d
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
# getter for: Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->mSmartHomeList:Ljava/util/List;
invoke-static {v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->access$100(Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;)Ljava/util/List;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->notifySmartHomeDataChanged(Ljava/util/List;)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->showContentView()V
return-void
:cond_4e
:try_start_4e
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
# invokes: Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->dealWithServiceData(Ljava/util/List;)V
invoke-static {v1, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->access$300(Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;Ljava/util/List;)V
:try_end_53
.catch Ljava/lang/Exception; {:try_start_4e .. :try_end_53} :catch_54
goto :goto_3d
:catch_54
move-exception v0
iget-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->val$refreshFinish:Z
if-eqz v0, :cond_3d
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment$5;->this$0:Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/SubSmarthomeFragment;->onRefreshFinish()V
goto :goto_3d
.end method