mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
276 lines
6.8 KiB
Smali
276 lines
6.8 KiB
Smali
.class public final Landroidx/lifecycle/SavedStateHandle$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "SavedStateHandle.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/lifecycle/SavedStateHandle;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0002\u0008\u0002\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u001c\u0010\n\u001a\u00020\u000b2\u0008\u0010\u000c\u001a\u0004\u0018\u00010\r2\u0008\u0010\u000e\u001a\u0004\u0018\u00010\rH\u0007J\u0012\u0010\u000f\u001a\u00020\u00102\u0008\u0010\u0011\u001a\u0004\u0018\u00010\u0001H\u0007R \u0010\u0003\u001a\u0012\u0012\u000e\u0012\u000c\u0012\u0006\u0008\u0001\u0012\u00020\u0001\u0018\u00010\u00050\u0004X\u0082\u0004\u00a2\u0006\u0004\n\u0002\u0010\u0006R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0008X\u0082T\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0012"
|
|
}
|
|
d2 = {
|
|
"Landroidx/lifecycle/SavedStateHandle$Companion;",
|
|
"",
|
|
"()V",
|
|
"ACCEPTABLE_CLASSES",
|
|
"",
|
|
"Ljava/lang/Class;",
|
|
"[Ljava/lang/Class;",
|
|
"KEYS",
|
|
"",
|
|
"VALUES",
|
|
"createHandle",
|
|
"Landroidx/lifecycle/SavedStateHandle;",
|
|
"restoredState",
|
|
"Landroid/os/Bundle;",
|
|
"defaultState",
|
|
"validateValue",
|
|
"",
|
|
"value",
|
|
"lifecycle-viewmodel-savedstate_release"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 358
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Landroidx/lifecycle/SavedStateHandle$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final createHandle(Landroid/os/Bundle;Landroid/os/Bundle;)Landroidx/lifecycle/SavedStateHandle;
|
|
.locals 4
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 368
|
|
new-instance p0, Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
invoke-direct {p0}, Landroidx/lifecycle/SavedStateHandle;-><init>()V
|
|
|
|
goto :goto_1
|
|
|
|
.line 370
|
|
:cond_0
|
|
new-instance p0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {p0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
check-cast p0, Ljava/util/Map;
|
|
|
|
.line 371
|
|
invoke-virtual {p2}, Landroid/os/Bundle;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
const-string v1, "key"
|
|
|
|
.line 372
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p2, v0}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {p0, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
.line 374
|
|
:cond_1
|
|
new-instance p1, Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
invoke-direct {p1, p0}, Landroidx/lifecycle/SavedStateHandle;-><init>(Ljava/util/Map;)V
|
|
|
|
move-object p0, p1
|
|
|
|
:goto_1
|
|
return-object p0
|
|
|
|
:cond_2
|
|
const-string p0, "keys"
|
|
|
|
.line 381
|
|
invoke-virtual {p1, p0}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p2, "values"
|
|
|
|
.line 382
|
|
invoke-virtual {p1, p2}, Landroid/os/Bundle;->getParcelableArrayList(Ljava/lang/String;)Ljava/util/ArrayList;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p0, :cond_4
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 383
|
|
invoke-virtual {p0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
if-ne p2, v0, :cond_4
|
|
|
|
.line 386
|
|
new-instance p2, Ljava/util/LinkedHashMap;
|
|
|
|
invoke-direct {p2}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
check-cast p2, Ljava/util/Map;
|
|
|
|
.line 387
|
|
invoke-virtual {p0}, Ljava/util/ArrayList;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_2
|
|
if-ge v1, v0, :cond_3
|
|
|
|
.line 388
|
|
invoke-virtual {p0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "null cannot be cast to non-null type kotlin.String"
|
|
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {p2, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
.line 390
|
|
:cond_3
|
|
new-instance p0, Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
invoke-direct {p0, p2}, Landroidx/lifecycle/SavedStateHandle;-><init>(Ljava/util/Map;)V
|
|
|
|
return-object p0
|
|
|
|
.line 383
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Invalid bundle passed as restored state"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final validateValue(Ljava/lang/Object;)Z
|
|
.locals 5
|
|
|
|
const/4 p0, 0x1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return p0
|
|
|
|
.line 401
|
|
:cond_0
|
|
invoke-static {}, Landroidx/lifecycle/SavedStateHandle;->access$getACCEPTABLE_CLASSES$cp()[Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v3, v1, :cond_2
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
.line 402
|
|
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v4, p1}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return v2
|
|
.end method
|