SmartHomeAllDeviceFragment.smali
.class public Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;
.super Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;
# static fields
.field public static final MSG_SYNC:I = 0x64
# instance fields
.field private adapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
.field private deviceTypeBeans:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/cmcm/xiaobao/phone/smarthome/bean/AllDeviceListBean$DeviceTypeBean;",
">;"
}
.end annotation
.end field
.field private deviceUiTypeBeans:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lcom/cmcm/xiaobao/phone/smarthome/bean/DeviceUiTypeBean;",
">;"
}
.end annotation
.end field
.field private leftListView:Landroid/widget/ListView;
.field private mViewAnimator:Landroid/widget/ViewAnimator;
.field private rightListView:Landroid/widget/ListView;
.field private selectedPosition:I
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;-><init>()V
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceTypeBeans:Ljava/util/ArrayList;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceUiTypeBeans:Ljava/util/ArrayList;
return-void
.end method
.method static synthetic access$000(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->adapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
return-object v0
.end method
.method static synthetic access$100(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)I
.registers 2
iget v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->selectedPosition:I
return v0
.end method
.method static synthetic access$102(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;I)I
.registers 2
iput p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->selectedPosition:I
return p1
.end method
.method static synthetic access$200(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)Ljava/util/ArrayList;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceTypeBeans:Ljava/util/ArrayList;
return-object v0
.end method
.method static synthetic access$202(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;Ljava/util/ArrayList;)Ljava/util/ArrayList;
.registers 2
iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceTypeBeans:Ljava/util/ArrayList;
return-object p1
.end method
.method static synthetic access$300(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)Landroid/widget/ListView;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->rightListView:Landroid/widget/ListView;
return-object v0
.end method
.method static synthetic access$400(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)Ljava/util/ArrayList;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceUiTypeBeans:Ljava/util/ArrayList;
return-object v0
.end method
.method public static startDeviceList(Landroid/content/Context;)V
.registers 3
.annotation build Landroid/support/annotation/Keep;
.end annotation
invoke-static {}, Lcom/sdk/orion/ui/baselibrary/config/OrionResConfig;->isXiaobaoTaiWan()Z
move-result v0
if-eqz v0, :cond_c
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->orion_sdk_home_skill_detail_group_toast:I
invoke-static {v0}, Lcom/sdk/orion/ui/baselibrary/utils/ToastUtils;->showToast(I)V
:goto_b
return-void
:cond_c
const-class v0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;
sget v1, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->orion_sdk_smarthome_support_device:I
invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-static {p0, v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->getStartIntent(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
goto :goto_b
.end method
# virtual methods
.method protected fragmentHandlerMessage(Landroid/os/Message;)V
.registers 4
invoke-super {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->fragmentHandlerMessage(Landroid/os/Message;)V
iget v0, p1, Landroid/os/Message;->what:I
const/16 v1, 0x64
if-ne v0, v1, :cond_9
:cond_9
return-void
.end method
.method public getDataFromService()V
.registers 5
invoke-static {}, Lcom/sdk/orion/orion/OrionClient;->getInstance()Lcom/sdk/orion/orion/OrionClient;
move-result-object v0
const-string/jumbo v1, "/SmartHome/productInfos"
const/4 v2, 0x0
new-instance v3, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment$2;
invoke-direct {v3, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment$2;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)V
invoke-virtual {v0, v1, v2, v3}, Lcom/sdk/orion/orion/OrionClient;->getSmartHomeSdk(Ljava/lang/String;Ljava/lang/Object;Lcom/sdk/orion/callback/ContentCallBack;)V
return-void
.end method
.method protected getLayoutId()I
.registers 2
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$layout;->orion_sdk_smart_home_all_device:I
return v0
.end method
.method protected initArguments(Landroid/os/Bundle;)V
.registers 2
invoke-super {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initArguments(Landroid/os/Bundle;)V
return-void
.end method
.method protected initView()V
.registers 3
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->animator:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ViewAnimator;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->mViewAnimator:Landroid/widget/ViewAnimator;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->mViewAnimator:Landroid/widget/ViewAnimator;
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->initLoadingHelper(Landroid/view/View;)V
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->left_listview:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ListView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->leftListView:Landroid/widget/ListView;
new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v1
invoke-direct {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->adapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->adapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->deviceUiTypeBeans:Ljava/util/ArrayList;
invoke-virtual {v0, v1}, Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;->setItems(Ljava/util/ArrayList;)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->leftListView:Landroid/widget/ListView;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->adapter:Lcom/cmcm/xiaobao/phone/smarthome/adapter/RootListViewAdapter;
invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$id;->right_listview:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/ListView;
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->rightListView:Landroid/widget/ListView;
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->leftListView:Landroid/widget/ListView;
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment$1;
invoke-direct {v1, p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment$1;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;)V
invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V
return-void
.end method
.method protected loadData()V
.registers 1
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->getDataFromService()V
return-void
.end method
.method protected needSetStyle()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method public onCreate(Landroid/os/Bundle;)V
.registers 3
.param p1 # Landroid/os/Bundle;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
invoke-super {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onCreate(Landroid/os/Bundle;)V
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c;
move-result-object v0
invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/c;->a(Ljava/lang/Object;)V
return-void
.end method
.method public onDestroy()V
.registers 2
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onDestroy()V
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c;
move-result-object v0
invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/c;->b(Ljava/lang/Object;)V
return-void
.end method
.method public onEvent(Lcom/cmcm/xiaobao/phone/smarthome/event/EventTag$JumpDeviceList;)V
.registers 3
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
.end annotation
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/SmartHomeAllDeviceFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->finish()V
return-void
.end method
.method public onResume()V
.registers 1
invoke-super {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onResume()V
return-void
.end method