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

# interfaces
.implements Lcom/moji/mjweather/me/view/IActivityCenterView;


# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/moji/mjweather/me/MJMVPPageLoadActivity<",
        "Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;",
        ">;",
        "Lcom/moji/mjweather/me/view/IActivityCenterView;"
    }
.end annotation


# instance fields
.field private a:Landroid/widget/ListView;

.field private b:Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

.field private c:J


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

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

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/me/activity/ActivityCenterActivity;)Lcom/moji/mjweather/me/adapter/ActivityListAdapter;
    .locals 0

    .line 28
    iget-object p0, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->b:Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

    return-object p0
.end method

.method private k()V
    .locals 2

    .line 78
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->a:Landroid/widget/ListView;

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

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

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method


# virtual methods
.method protected a()I
    .locals 1

    const v0, 0x7f0b000a

    return v0
.end method

.method protected b()V
    .locals 1

    .line 51
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->m()Lcom/moji/mvpframe/BasePresenter;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;

    invoke-virtual {v0}, Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;->f()V

    return-void
.end method

.method protected c()Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;
    .locals 1

    .line 56
    new-instance v0, Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;-><init>(Lcom/moji/mjweather/me/view/IActivityCenterView;)V

    return-object v0
.end method

.method protected synthetic d()Lcom/moji/mvpframe/BasePresenter;
    .locals 1

    .line 27
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->c()Lcom/moji/mjweather/me/presenter/ActivityCenterPresenter;

    move-result-object v0

    return-object v0
.end method

.method public fillListData(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/http/sci/ActivityResultEntity$ActivityEntity;",
            ">;)V"
        }
    .end annotation

    .line 105
    iget-object v0, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->b:Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/me/adapter/ActivityListAdapter;->a(Ljava/util/List;)V

    return-void
.end method

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

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

    const p1, 0x7f09057c

    .line 62
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->a(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/widget/ListView;

    iput-object p1, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->a:Landroid/widget/ListView;

    .line 63
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const v0, 0x7f060235

    invoke-static {v0}, Lcom/moji/tool/DeviceTool;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

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

    .line 65
    new-instance p1, Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/me/adapter/ActivityListAdapter;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->b:Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

    .line 66
    iget-object p1, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->a:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->b:Lcom/moji/mjweather/me/adapter/ActivityListAdapter;

    invoke-virtual {p1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 67
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->b()V

    return-void
.end method

.method protected onPause()V
    .locals 5

    .line 72
    invoke-super {p0}, Lcom/moji/mjweather/me/MJMVPPageLoadActivity;->onPause()V

    .line 74
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->c:J

    sub-long/2addr v0, v2

    .line 75
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v2

    sget-object v3, Lcom/moji/statistics/EVENT_TAG;->ME_ACTIVITY_TIME:Lcom/moji/statistics/EVENT_TAG;

    const-string v4, "0"

    invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;

    return-void
.end method

.method protected onResume()V
    .locals 2

    .line 40
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/me/activity/ActivityCenterActivity;->c:J

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

    return-void
.end method
