Weather/smali_classes2/com/moji/mvpframe/MVPFragment.smali
2021-05-10 10:13:34 +02:00

120 lines
2.8 KiB
Smali

.class public abstract Lcom/moji/mvpframe/MVPFragment;
.super Lcom/moji/base/MJFragment;
.source "MVPFragment.java"
# interfaces
.implements Lcom/moji/mvpframe/IMJMvpView;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<P:",
"Lcom/moji/mvpframe/BasePresenter;",
">",
"Lcom/moji/base/MJFragment;",
"Lcom/moji/mvpframe/IMJMvpView;"
}
.end annotation
# instance fields
.field protected b:Lcom/moji/mvpframe/BasePresenter;
.annotation system Ldalvik/annotation/Signature;
value = {
"TP;"
}
.end annotation
.end field
.field private c:Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
# direct methods
.method public constructor <init>()V
.locals 0
.line 19
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
return-void
.end method
.method private a()V
.locals 2
.line 50
iget-object v0, p0, Lcom/moji/mvpframe/MVPFragment;->b:Lcom/moji/mvpframe/BasePresenter;
if-eqz v0, :cond_0
return-void
.line 51
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "mPresenter can nor be null,please init it in instancePresenter method"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
# virtual methods
.method protected abstract c()Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
.end method
.method protected abstract d()Lcom/moji/mvpframe/BasePresenter;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TP;"
}
.end annotation
.end method
.method protected e()Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
.locals 1
.line 161
iget-object v0, p0, Lcom/moji/mvpframe/MVPFragment;->c:Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
return-object v0
.end method
.method public onAttach(Landroid/content/Context;)V
.locals 1
.line 25
invoke-virtual {p0}, Lcom/moji/mvpframe/MVPFragment;->d()Lcom/moji/mvpframe/BasePresenter;
move-result-object v0
iput-object v0, p0, Lcom/moji/mvpframe/MVPFragment;->b:Lcom/moji/mvpframe/BasePresenter;
.line 26
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->onAttach(Landroid/content/Context;)V
.line 27
invoke-direct {p0}, Lcom/moji/mvpframe/MVPFragment;->a()V
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 0
.line 32
invoke-super {p0, p1}, Lcom/moji/base/MJFragment;->onCreate(Landroid/os/Bundle;)V
.line 33
invoke-virtual {p0}, Lcom/moji/mvpframe/MVPFragment;->c()Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
move-result-object p1
iput-object p1, p0, Lcom/moji/mvpframe/MVPFragment;->c:Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
return-void
.end method