BaseFragment.smali
.class public abstract Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;
.super Landroid/support/v4/app/Fragment;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment$FragmentHandler;
}
.end annotation
# instance fields
.field protected mActivity:Landroid/app/Activity;
.field protected mContentView:Landroid/view/View;
.field protected mIsHide:Z
.field protected mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
# direct methods
.method public constructor <init>()V
.registers 2
invoke-direct {p0}, Landroid/support/v4/app/Fragment;-><init>()V
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->getArguments()Landroid/os/Bundle;
move-result-object v0
if-eqz v0, :cond_11
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->getArguments()Landroid/os/Bundle;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->setArguments(Landroid/os/Bundle;)V
:goto_10
return-void
:cond_11
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->setArguments(Landroid/os/Bundle;)V
goto :goto_10
.end method
.method private isContainsFragmentActivity()Z
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
if-eqz v0, :cond_c
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
instance-of v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
if-eqz v0, :cond_c
const/4 v0, 0x1
:goto_b
return v0
:cond_c
const/4 v0, 0x0
goto :goto_b
.end method
# virtual methods
.method public clickRightBtn()V
.registers 1
return-void
.end method
.method public closeKeyboard()V
.registers 4
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
if-nez v0, :cond_5
:cond_4
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
move-result-object v0
invoke-virtual {v0}, Landroid/view/Window;->peekDecorView()Landroid/view/View;
move-result-object v1
if-eqz v1, :cond_4
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
const-string/jumbo v2, "input_method"
invoke-virtual {v0, v2}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
goto :goto_4
.end method
.method public findViewById(I)Landroid/view/View;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Landroid/view/View;",
">(I)TT;"
}
.end annotation
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
invoke-virtual {v0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
return-object v0
.end method
.method protected fragmentHandlerMessage(Landroid/os/Message;)V
.registers 2
return-void
.end method
.method protected getEditTextString(Landroid/widget/EditText;)Ljava/lang/String;
.registers 3
invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method protected abstract getLayoutId()I
.end method
.method public getMiniPlayerBottomMargin()I
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
const/high16 v1, 0x41700000 # 15.0f
invoke-static {v0, v1}, Lcom/sdk/orion/ui/baselibrary/utils/DensityUtil;->dip2px(Landroid/content/Context;F)I
move-result v0
return v0
.end method
.method public getPlayerTag()Ljava/lang/String;
.registers 2
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getView()Landroid/view/View;
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
return-object v0
.end method
.method public handleClickBack()Z
.registers 2
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onBackPress()Z
move-result v0
return v0
.end method
.method public hideRightBtn()V
.registers 2
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->isContainsFragmentActivity()Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->hideRightText()V
goto :goto_6
.end method
.method protected initArguments(Landroid/os/Bundle;)V
.registers 2
return-void
.end method
.method public initLoadingHelper(I)V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
invoke-virtual {p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->findViewById(I)Landroid/view/View;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initLoadingHelper(Landroid/view/View;)V
goto :goto_4
.end method
.method public initLoadingHelper(Landroid/view/View;)V
.registers 5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_12
new-instance v0, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
iget-object v1, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
new-instance v2, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment$1;
invoke-direct {v2, p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment$1;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;)V
invoke-direct {v0, v1, p1, v2}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;-><init>(Landroid/content/Context;Landroid/view/View;Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper$OnClickRetryListener;)V
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
:cond_12
return-void
.end method
.method protected abstract initView()V
.end method
.method protected initView(Landroid/os/Bundle;)V
.registers 2
return-void
.end method
.method protected isEditTextEmpty(Landroid/widget/EditText;)Z
.registers 3
invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
return v0
.end method
.method protected loadData()V
.registers 1
return-void
.end method
.method protected needLoadData()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method protected needSetStyle()Z
.registers 2
const/4 v0, 0x1
return v0
.end method
.method public onActivityCreated(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}, Landroid/support/v4/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->needSetStyle()Z
move-result v0
if-eqz v0, :cond_16
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->setTopBarWhiteStyle()V
:goto_c
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->needLoadData()Z
move-result v0
if-eqz v0, :cond_15
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->loadData()V
:cond_15
return-void
:cond_16
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->setTopBarDarkStyle()V
goto :goto_c
.end method
.method public onAttach(Landroid/app/Activity;)V
.registers 2
invoke-super {p0, p1}, Landroid/support/v4/app/Fragment;->onAttach(Landroid/app/Activity;)V
iput-object p1, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
return-void
.end method
.method public onBackPress()Z
.registers 2
const/4 v0, 0x0
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}, Landroid/support/v4/app/Fragment;->onCreate(Landroid/os/Bundle;)V
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->getArguments()Landroid/os/Bundle;
move-result-object v0
if-eqz v0, :cond_c
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initArguments(Landroid/os/Bundle;)V
:cond_c
return-void
.end method
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.registers 6
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->getLayoutId()I
move-result v0
const/4 v1, 0x0
invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initView()V
invoke-virtual {p0, p3}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->initView(Landroid/os/Bundle;)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
return-object v0
.end method
.method public onFragmentHide()V
.registers 1
return-void
.end method
.method public onFragmentShow()V
.registers 1
return-void
.end method
.method public onHiddenChanged(Z)V
.registers 3
if-eqz p1, :cond_9
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mIsHide:Z
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onFragmentHide()V
:goto_8
return-void
:cond_9
invoke-virtual {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->onFragmentShow()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mIsHide:Z
goto :goto_8
.end method
.method protected setRightBtnEnable(Z)V
.registers 3
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->isContainsFragmentActivity()Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setRightTextEnable(Z)V
goto :goto_6
.end method
.method public setRightBtnText(I)V
.registers 3
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->isContainsFragmentActivity()Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setRightText(I)V
goto :goto_6
.end method
.method public setRightBtnTextColor(I)V
.registers 3
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->isContainsFragmentActivity()Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setRightTextColor(I)V
goto :goto_6
.end method
.method protected setTopBarDarkStyle()V
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
if-eqz v0, :cond_a
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
instance-of v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
if-nez v0, :cond_b
:cond_a
:goto_a
return-void
:cond_b
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setTopBarDarkStyle()V
goto :goto_a
.end method
.method protected setTopBarWhiteStyle()V
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
if-eqz v0, :cond_a
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
instance-of v0, v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
if-nez v0, :cond_b
:cond_a
:goto_a
return-void
:cond_b
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->setTopBarWhiteStyle()V
goto :goto_a
.end method
.method public showContentView()V
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showContentView()V
goto :goto_4
.end method
.method public showDefaultEmptyView()V
.registers 2
sget v0, Lcom/cmcm/xiaobao/phone/smarthome/R$string;->data_empty:I
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->showEmptyView(I)V
return-void
.end method
.method public showEmptyView(I)V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showEmptyView(I)V
goto :goto_4
.end method
.method public showLoadingView()V
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-eqz v0, :cond_9
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showLoadingView()V
:cond_9
return-void
.end method
.method public showLoadingView(I)V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-eqz v0, :cond_e
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->setLoadingContent(I)V
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showLoadingView()V
:cond_e
return-void
.end method
.method public showPlayer()Z
.registers 2
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/ChannelUtil;->isXiaoBaoTaiWan()Z
move-result v0
if-eqz v0, :cond_8
const/4 v0, 0x0
:goto_7
return v0
:cond_8
const/4 v0, 0x1
goto :goto_7
.end method
.method public showRetryView()V
.registers 2
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showRetryView()V
goto :goto_4
.end method
.method public showRetryView(I)V
.registers 3
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showRetryView(I)V
goto :goto_4
.end method
.method public showRetryView(II)V
.registers 4
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
if-nez v0, :cond_5
:goto_4
return-void
:cond_5
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mLoadingHelper:Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;
invoke-virtual {v0, p1, p2}, Lcom/cmcm/xiaobao/phone/smarthome/widget/LoadingHelper;->showRetryView(II)V
goto :goto_4
.end method
.method public showRightBtn()V
.registers 2
invoke-direct {p0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->isContainsFragmentActivity()Z
move-result v0
if-nez v0, :cond_7
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mActivity:Landroid/app/Activity;
check-cast v0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/ContainsFragmentActivity;->showRightText()V
goto :goto_6
.end method
.method public showToast(I)V
.registers 3
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;
move-result-object v0
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->showToast(Ljava/lang/String;)V
return-void
.end method
.method public showToast(Ljava/lang/String;)V
.registers 4
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_7
:goto_6
return-void
:cond_7
:try_start_7
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;
move-result-object v0
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getAppContext()Landroid/content/Context;
move-result-object v0
const/4 v1, 0x0
invoke-static {v0, p1, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v0
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
:try_end_17
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_17} :catch_18
goto :goto_6
:catch_18
move-exception v0
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
goto :goto_6
.end method
.method public showToastMainThread(I)V
.registers 3
invoke-static {}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getInstance()Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;
move-result-object v0
invoke-virtual {v0}, Lcom/cmcm/xiaobao/phone/smarthome/sdk/SmartHomeSDK;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->showToastMainThread(Ljava/lang/String;)V
return-void
.end method
.method public showToastMainThread(Ljava/lang/String;)V
.registers 4
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
if-eqz v0, :cond_e
iget-object v0, p0, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;->mContentView:Landroid/view/View;
new-instance v1, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment$2;
invoke-direct {v1, p0, p1}, Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment$2;-><init>(Lcom/cmcm/xiaobao/phone/smarthome/baseui/BaseFragment;Ljava/lang/String;)V
invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
:cond_e
return-void
.end method