83 lines
2.1 KiB
Smali
83 lines
2.1 KiB
Smali
.class public final Lcom/fyber/inneractive/sdk/config/e;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public b:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/content/Context;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Lcom/fyber/inneractive/sdk/config/e$a;
|
|
|
|
invoke-direct {v0, p0}, Lcom/fyber/inneractive/sdk/config/e$a;-><init>(Lcom/fyber/inneractive/sdk/config/e;)V
|
|
|
|
iput-object p2, p0, Lcom/fyber/inneractive/sdk/config/e;->a:Landroid/content/Context;
|
|
|
|
.line 43
|
|
instance-of p2, p1, Landroid/app/Activity;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 44
|
|
new-instance p2, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p2, p0, Lcom/fyber/inneractive/sdk/config/e;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 45
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/app/Application;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/fyber/inneractive/sdk/config/e;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
.line 1
|
|
invoke-static {v0}, Lcom/fyber/inneractive/sdk/util/t;->a(Ljava/lang/ref/WeakReference;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/fyber/inneractive/sdk/config/e;->a:Landroid/content/Context;
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|