132 lines
3.0 KiB
Smali
132 lines
3.0 KiB
Smali
.class public Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
.super Ljava/lang/Object;
|
|
.source "SakuraSubPresenter.java"
|
|
|
|
|
|
# static fields
|
|
.field private static a:Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# instance fields
|
|
.field private b:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 9
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 22
|
|
iput-boolean v0, p0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
.locals 1
|
|
|
|
.line 16
|
|
sget-object v0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->a:Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 17
|
|
new-instance v0, Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
|
|
invoke-direct {v0}, Lcom/moji/sakura/presenter/SakuraSubPresenter;-><init>()V
|
|
|
|
sput-object v0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->a:Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
|
|
.line 19
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->a:Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Ljava/lang/String;ILandroid/content/Context;)V
|
|
.locals 2
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Lcom/moji/sakura/presenter/SakuraSubPresenter;->b()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 39
|
|
invoke-static {p2, p3}, Lcom/moji/sakura/SakuraSubscribeActivity;->startSakuraSubscribeActivity(ILandroid/content/Context;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/router/MJRouter;->a()Lcom/moji/router/MJRouter;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "sakura/guide"
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/router/MJRouter;->a(Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "spot_type"
|
|
|
|
.line 42
|
|
invoke-virtual {v0, v1, p2}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;I)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p2
|
|
|
|
const-string v0, "subscribe_image"
|
|
|
|
.line 43
|
|
invoke-virtual {p2, v0, p1}, Lcom/moji/router/Postcard;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/moji/router/Postcard;
|
|
|
|
move-result-object p1
|
|
|
|
.line 44
|
|
invoke-virtual {p1, p3}, Lcom/moji/router/Postcard;->a(Landroid/content/Context;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 0
|
|
|
|
.line 30
|
|
iput-boolean p1, p0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()Z
|
|
.locals 1
|
|
|
|
.line 25
|
|
iget-boolean v0, p0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->b:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 34
|
|
sput-object v0, Lcom/moji/sakura/presenter/SakuraSubPresenter;->a:Lcom/moji/sakura/presenter/SakuraSubPresenter;
|
|
|
|
return-void
|
|
.end method
|