Rabbit-R1/switch port/smali/smali_classes2/androidx/lifecycle/LifecycleDispatcher.smali
2024-05-21 17:08:36 -04:00

121 lines
3.6 KiB
Smali

.class public final Landroidx/lifecycle/LifecycleDispatcher;
.super Ljava/lang/Object;
.source "LifecycleDispatcher.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/lifecycle/LifecycleDispatcher$DispatcherActivityCallback;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u00c0\u0002\u0018\u00002\u00020\u0001:\u0001\tB\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0008H\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\n"
}
d2 = {
"Landroidx/lifecycle/LifecycleDispatcher;",
"",
"()V",
"initialized",
"Ljava/util/concurrent/atomic/AtomicBoolean;",
"init",
"",
"context",
"Landroid/content/Context;",
"DispatcherActivityCallback",
"lifecycle-process_release"
}
k = 0x1
mv = {
0x1,
0x8,
0x0
}
xi = 0x30
.end annotation
# static fields
.field public static final INSTANCE:Landroidx/lifecycle/LifecycleDispatcher;
.field private static final initialized:Ljava/util/concurrent/atomic/AtomicBoolean;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/lifecycle/LifecycleDispatcher;
invoke-direct {v0}, Landroidx/lifecycle/LifecycleDispatcher;-><init>()V
sput-object v0, Landroidx/lifecycle/LifecycleDispatcher;->INSTANCE:Landroidx/lifecycle/LifecycleDispatcher;
.line 33
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
sput-object v0, Landroidx/lifecycle/LifecycleDispatcher;->initialized:Ljava/util/concurrent/atomic/AtomicBoolean;
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 32
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static final init(Landroid/content/Context;)V
.locals 2
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string v0, "context"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Landroidx/lifecycle/LifecycleDispatcher;->initialized:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
.line 37
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->getAndSet(Z)Z
move-result v0
if-eqz v0, :cond_0
return-void
.line 40
:cond_0
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object p0
const-string v0, "null cannot be cast to non-null type android.app.Application"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p0, Landroid/app/Application;
.line 41
new-instance v0, Landroidx/lifecycle/LifecycleDispatcher$DispatcherActivityCallback;
invoke-direct {v0}, Landroidx/lifecycle/LifecycleDispatcher$DispatcherActivityCallback;-><init>()V
check-cast v0, Landroid/app/Application$ActivityLifecycleCallbacks;
invoke-virtual {p0, v0}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
return-void
.end method