227 lines
5.5 KiB
Smali
227 lines
5.5 KiB
Smali
.class public abstract Lcom/moji/newliveview/base/BaseFragment;
|
|
.super Lcom/moji/base/MJFragment;
|
|
.source "BaseFragment.java"
|
|
|
|
|
|
# instance fields
|
|
.field protected b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
.field private c:Landroid/view/View;
|
|
|
|
.field private d:Z
|
|
|
|
.field private e:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 21
|
|
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected abstract a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.end method
|
|
|
|
.method protected abstract a()V
|
|
.end method
|
|
|
|
.method protected a(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected abstract b()V
|
|
.end method
|
|
|
|
.method protected c()V
|
|
.locals 3
|
|
|
|
.line 97
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/BaseFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 98
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/BaseFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/newliveview/R$string;->no_network:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 101
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/BaseFragment;->b:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
|
|
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/newliveview/R$string;->server_error:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->showErrorView(Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onActivityCreated(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 54
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->onActivityCreated(Landroid/os/Bundle;)V
|
|
|
|
.line 55
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/BaseFragment;->getUserVisibleHint()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 56
|
|
iget-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->d:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 57
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/BaseFragment;->b()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 58
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->d:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 33
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
.line 34
|
|
iget-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->e:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 35
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/BaseFragment;->a()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 36
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->e:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
.locals 1
|
|
.param p2 # Landroid/view/ViewGroup;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.param p3 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 45
|
|
iget-object v0, p0, Lcom/moji/newliveview/base/BaseFragment;->c:Landroid/view/View;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 46
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/newliveview/base/BaseFragment;->a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/moji/newliveview/base/BaseFragment;->c:Landroid/view/View;
|
|
|
|
.line 48
|
|
:cond_0
|
|
invoke-virtual {p0, p3}, Lcom/moji/newliveview/base/BaseFragment;->a(Landroid/os/Bundle;)V
|
|
|
|
.line 49
|
|
iget-object p1, p0, Lcom/moji/newliveview/base/BaseFragment;->c:Landroid/view/View;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onHiddenChanged(Z)V
|
|
.locals 0
|
|
|
|
.line 64
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->onHiddenChanged(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUserVisibleHint(Z)V
|
|
.locals 1
|
|
|
|
.line 69
|
|
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->setUserVisibleHint(Z)V
|
|
|
|
.line 73
|
|
iget-boolean v0, p0, Lcom/moji/newliveview/base/BaseFragment;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->d:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 74
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/base/BaseFragment;->b()V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 75
|
|
iput-boolean p1, p0, Lcom/moji/newliveview/base/BaseFragment;->d:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|