72 lines
1.4 KiB
Smali
72 lines
1.4 KiB
Smali
.class public Lcom/moji/tool/AppDelegate;
|
|
.super Ljava/lang/Object;
|
|
.source "AppDelegate.java"
|
|
|
|
|
|
# static fields
|
|
.field private static a:Landroid/content/Context; = null
|
|
|
|
.field private static b:Z = false
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()Landroid/content/Context;
|
|
.locals 2
|
|
|
|
.line 18
|
|
sget-object v0, Lcom/moji/tool/AppDelegate;->a:Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 21
|
|
sget-object v0, Lcom/moji/tool/AppDelegate;->a:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
const-string v1, "must call method initContext"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static a(Landroid/content/Context;Z)V
|
|
.locals 0
|
|
|
|
.line 33
|
|
sput-object p0, Lcom/moji/tool/AppDelegate;->a:Landroid/content/Context;
|
|
|
|
.line 34
|
|
sput-boolean p1, Lcom/moji/tool/AppDelegate;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b()Z
|
|
.locals 1
|
|
|
|
.line 25
|
|
sget-boolean v0, Lcom/moji/tool/AppDelegate;->b:Z
|
|
|
|
return v0
|
|
.end method
|