431 lines
12 KiB
Smali
431 lines
12 KiB
Smali
.class public Lcom/moji/sakura/SakuraGuideFragment;
|
|
.super Lcom/moji/base/MJFragment;
|
|
.source "SakuraGuideFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field private b:Landroid/widget/ImageView;
|
|
|
|
.field private c:Landroid/widget/TextView;
|
|
|
|
.field private d:I
|
|
|
|
.field private e:Ljava/lang/String;
|
|
|
|
.field private f:Landroid/widget/RelativeLayout;
|
|
|
|
.field private g:Lcom/squareup/picasso/Target;
|
|
|
|
.field private h:I
|
|
|
|
.field private i:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 27
|
|
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 34
|
|
iput v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->h:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/sakura/SakuraGuideFragment;)Landroid/widget/RelativeLayout;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/sakura/SakuraGuideFragment;->f:Landroid/widget/RelativeLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 3
|
|
|
|
.line 74
|
|
iget-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->i:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
sget v1, Lcom/moji/sakura/R$string;->subscribe_guide:I
|
|
|
|
invoke-virtual {p0, v1}, Lcom/moji/sakura/SakuraGuideFragment;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setTitleText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 75
|
|
iget-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->i:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
sget v2, Lcom/moji/sakura/R$color;->white:I
|
|
|
|
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/titlebar/MJTitleBar;->setActionTextColor(I)V
|
|
|
|
.line 76
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getArguments()Landroid/os/Bundle;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, "spot_type"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 78
|
|
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
|
|
|
|
move-result v1
|
|
|
|
iput v1, p0, Lcom/moji/sakura/SakuraGuideFragment;->d:I
|
|
|
|
const-string v1, "subscribe_image"
|
|
|
|
.line 79
|
|
invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->e:Ljava/lang/String;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 66
|
|
sget v0, Lcom/moji/sakura/R$id;->sakura_subscribe_guide_img:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
iput-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->b:Landroid/widget/ImageView;
|
|
|
|
.line 67
|
|
sget v0, Lcom/moji/sakura/R$id;->guide_no_img_layout:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/RelativeLayout;
|
|
|
|
iput-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->f:Landroid/widget/RelativeLayout;
|
|
|
|
.line 68
|
|
sget v0, Lcom/moji/sakura/R$id;->goto_subscribe:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->c:Landroid/widget/TextView;
|
|
|
|
.line 69
|
|
sget v0, Lcom/moji/sakura/R$id;->sakura_subscribe_title:I
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
iput-object p1, p0, Lcom/moji/sakura/SakuraGuideFragment;->i:Lcom/moji/titlebar/MJTitleBar;
|
|
|
|
.line 70
|
|
iget-object p1, p0, Lcom/moji/sakura/SakuraGuideFragment;->c:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/sakura/SakuraGuideFragment;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/sakura/SakuraGuideFragment;->b:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private b()V
|
|
.locals 2
|
|
|
|
.line 84
|
|
new-instance v0, Lcom/moji/sakura/SakuraGuideFragment$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/sakura/SakuraGuideFragment$1;-><init>(Lcom/moji/sakura/SakuraGuideFragment;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->g:Lcom/squareup/picasso/Target;
|
|
|
|
.line 114
|
|
iget-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->e:Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 115
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/sakura/SakuraGuideFragment;->e:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/moji/sakura/SakuraGuideFragment;->g:Lcom/squareup/picasso/Target;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/RequestCreator;->a(Lcom/squareup/picasso/Target;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/sakura/SakuraGuideFragment;)I
|
|
.locals 2
|
|
|
|
.line 27
|
|
iget v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->h:I
|
|
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
iput v1, p0, Lcom/moji/sakura/SakuraGuideFragment;->h:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/sakura/SakuraGuideFragment;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/sakura/SakuraGuideFragment;->e:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/sakura/SakuraGuideFragment;)Lcom/squareup/picasso/Target;
|
|
.locals 0
|
|
|
|
.line 27
|
|
iget-object p0, p0, Lcom/moji/sakura/SakuraGuideFragment;->g:Lcom/squareup/picasso/Target;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 2
|
|
|
|
.line 120
|
|
new-instance p1, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
.line 121
|
|
invoke-virtual {p1}, Lcom/moji/preferences/ProcessPrefer;->k()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/moji/preferences/ProcessPrefer;->g()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 122
|
|
iget p1, p0, Lcom/moji/sakura/SakuraGuideFragment;->d:I
|
|
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/sakura/SakuraSubscribeActivity;->startSakuraSubscribeActivity(ILandroid/content/Context;)V
|
|
|
|
.line 123
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/support/v4/app/FragmentActivity;->finish()V
|
|
|
|
.line 124
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
sget v0, Lcom/moji/sakura/R$anim;->activity_open_right_in:I
|
|
|
|
sget v1, Lcom/moji/sakura/R$anim;->anim_empty_instead:I
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/support/v4/app/FragmentActivity;->overridePendingTransition(II)V
|
|
|
|
.line 125
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SAKURA_VIP_SUBSCRIPTION_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "0"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
goto :goto_0
|
|
|
|
.line 127
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/sakura/SakuraGuideFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/member/MojiVipManage$OpenVipFrom;->SAKURA:Lcom/moji/member/MojiVipManage$OpenVipFrom;
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/member/MojiVipManage;->a(Landroid/content/Context;Lcom/moji/member/MojiVipManage$OpenVipFrom;)V
|
|
|
|
.line 128
|
|
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/moji/statistics/EVENT_TAG;->SAKURA_VIP_SUBSCRIPTION_CLICK:Lcom/moji/statistics/EVENT_TAG;
|
|
|
|
const-string v1, "1"
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;
|
|
|
|
:goto_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
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 42
|
|
sget p3, Lcom/moji/sakura/R$layout;->fragment_sakura_guide:I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onResume()V
|
|
.locals 2
|
|
|
|
.line 56
|
|
invoke-super {p0}, Lcom/moji/base/MJFragment;->onResume()V
|
|
|
|
.line 57
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
.line 58
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->k()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/ProcessPrefer;->g()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 61
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->c:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/sakura/R$string;->sakura_subscribe_now:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 59
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/moji/sakura/SakuraGuideFragment;->c:Landroid/widget/TextView;
|
|
|
|
sget v1, Lcom/moji/sakura/R$string;->sakura_open_vip:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p2 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 48
|
|
invoke-super {p0, p1, p2}, Lcom/moji/base/MJFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1}, Lcom/moji/sakura/SakuraGuideFragment;->a(Landroid/view/View;)V
|
|
|
|
.line 50
|
|
invoke-direct {p0}, Lcom/moji/sakura/SakuraGuideFragment;->a()V
|
|
|
|
.line 51
|
|
invoke-direct {p0}, Lcom/moji/sakura/SakuraGuideFragment;->b()V
|
|
|
|
return-void
|
|
.end method
|