mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
50 lines
1.2 KiB
Smali
50 lines
1.2 KiB
Smali
.class public Lorg/webrtc/ContextUtils;
|
|
.super Ljava/lang/Object;
|
|
.source "ContextUtils.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final TAG:Ljava/lang/String; = "ContextUtils"
|
|
|
|
.field private static applicationContext:Landroid/content/Context;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 19
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getApplicationContext()Landroid/content/Context;
|
|
.locals 1
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
sget-object v0, Lorg/webrtc/ContextUtils;->applicationContext:Landroid/content/Context;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static initialize(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
sput-object p0, Lorg/webrtc/ContextUtils;->applicationContext:Landroid/content/Context;
|
|
|
|
return-void
|
|
|
|
.line 30
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Application context cannot be null for ContextUtils.initialize."
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|