.class public Lcom/moji/mjweather/me/activity/MyCollectActivity;
.super Lcom/moji/base/MJActivity;
.source "MyCollectActivity.java"


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

    .line 16
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    return-void
.end method

.method private b()V
    .locals 3

    .line 43
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->a()V

    .line 44
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/me/fragment/MyFavListFragment;

    invoke-direct {v1}, Lcom/moji/mjweather/me/fragment/MyFavListFragment;-><init>()V

    const v2, 0x7f0904dd

    invoke-virtual {v0, v2, v1}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    return-void
.end method


# virtual methods
.method protected a()V
    .locals 4

    const v0, 0x7f090432

    .line 25
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v1, 0x7f090bbc

    .line 26
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v2, 0x7f0e0558

    .line 27
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    const v1, 0x7f0907a1

    .line 28
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    .line 29
    invoke-virtual {p0}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f06005d

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    const v1, 0x7f090412

    .line 30
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    const/16 v2, 0x8

    .line 31
    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    if-eqz v0, :cond_0

    .line 33
    new-instance v1, Lcom/moji/mjweather/me/activity/MyCollectActivity$1;

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

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_0
    return-void
.end method

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

    .line 19
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0b005a

    .line 20
    invoke-virtual {p0, p1}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->setContentView(I)V

    .line 21
    invoke-direct {p0}, Lcom/moji/mjweather/me/activity/MyCollectActivity;->b()V

    return-void
.end method
