.class public abstract Lcom/moji/mjweather/me/MJMVPPageLoadActivity;
.super Lcom/moji/mjweather/me/activity/MJMVPActivity;
.source "MJMVPPageLoadActivity.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<P:",
        "Lcom/moji/mvpframe/BasePresenter;",
        ">",
        "Lcom/moji/mjweather/me/activity/MJMVPActivity<",
        "TP;>;"
    }
.end annotation


# instance fields
.field private a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 19
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/MJMVPActivity;-><init>()V

    return-void
.end method

.method private c()V
    .locals 2

    .line 47
    iget-object v0, p0, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    new-instance v1, Lcom/moji/mjweather/me/MJMVPPageLoadActivity$1;

    invoke-direct {v1, p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity$1;-><init>(Lcom/moji/mjweather/me/MJMVPPageLoadActivity;)V

    invoke-virtual {v0, v1}, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;->setOnRetryClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private k()V
    .locals 2

    const v0, 0x7f0908db

    .line 56
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    iput-object v0, p0, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    .line 57
    iget-object v0, p0, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    if-eqz v0, :cond_0

    return-void

    .line 58
    :cond_0
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "mStatusLayout can nor be null,please make sure that the layout contains MJMultipleStatusLayout at the same time,the id named with status_layout"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private l()V
    .locals 3

    .line 63
    invoke-virtual {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->n()Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/me/MultipleStatusLayoutImpl;

    iget-object v2, p0, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    invoke-direct {v1, v2}, Lcom/moji/mjweather/me/MultipleStatusLayoutImpl;-><init>(Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;)V

    invoke-virtual {v0, v1}, Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;->a(Lcom/moji/mvpframe/delegate/IStatusLoad;)V

    return-void
.end method


# virtual methods
.method protected abstract a()I
    .annotation build Landroid/support/annotation/LayoutRes;
    .end annotation
.end method

.method protected abstract b()V
.end method

.method protected e()Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;
    .locals 1

    .line 29
    iget-object v0, p0, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a:Lcom/moji/multiplestatuslayout/MJMultipleStatusLayout;

    return-object v0
.end method

.method protected j()Lcom/moji/mvpframe/delegate/AbsStatusViewDelegate;
    .locals 1

    .line 34
    new-instance v0, Lcom/moji/mjweather/common/MultipleStatusViewDelegate;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/common/MultipleStatusViewDelegate;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 39
    invoke-super {p0, p1}, Lcom/moji/mjweather/me/activity/MJMVPActivity;->onCreate(Landroid/os/Bundle;)V

    .line 40
    invoke-virtual {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->a()I

    move-result p1

    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->setContentView(I)V

    .line 41
    invoke-direct {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->k()V

    .line 42
    invoke-direct {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->c()V

    .line 43
    invoke-direct {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->l()V

    return-void
.end method
