* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
799 lines
20 KiB
Smali
799 lines
20 KiB
Smali
.class public final Landroidx/lifecycle/SavedStateHandleSupport;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000\u0002\n\u0000\u00a8\u0006\u0000"
|
|
}
|
|
d2 = {
|
|
"lifecycle-viewmodel-savedstate_release"
|
|
}
|
|
k = 0x2
|
|
mv = {
|
|
0x1,
|
|
0x8,
|
|
0x0
|
|
}
|
|
xi = 0x30
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/JvmName;
|
|
name = "SavedStateHandleSupport"
|
|
.end annotation
|
|
|
|
.annotation build Lkotlin/jvm/internal/SourceDebugExtension;
|
|
value = {
|
|
"SMAP\nSavedStateHandleSupport.kt\nKotlin\n*S Kotlin\n*F\n+ 1 SavedStateHandleSupport.kt\nandroidx/lifecycle/SavedStateHandleSupport\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 InitializerViewModelFactory.kt\nandroidx/lifecycle/viewmodel/InitializerViewModelFactoryKt\n*L\n1#1,225:1\n1#2:226\n31#3:227\n63#3,2:228\n*S KotlinDebug\n*F\n+ 1 SavedStateHandleSupport.kt\nandroidx/lifecycle/SavedStateHandleSupport\n*L\n109#1:227\n110#1:228,2\n*E\n"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final a:Landroidx/lifecycle/SavedStateHandleSupport$SAVED_STATE_REGISTRY_OWNER_KEY$1;
|
|
|
|
.field public static final b:Landroidx/lifecycle/SavedStateHandleSupport$VIEW_MODEL_STORE_OWNER_KEY$1;
|
|
|
|
.field public static final c:Landroidx/lifecycle/SavedStateHandleSupport$DEFAULT_ARGS_KEY$1;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/lifecycle/SavedStateHandleSupport$SAVED_STATE_REGISTRY_OWNER_KEY$1;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Landroidx/lifecycle/SavedStateHandleSupport;->a:Landroidx/lifecycle/SavedStateHandleSupport$SAVED_STATE_REGISTRY_OWNER_KEY$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Landroidx/lifecycle/SavedStateHandleSupport$VIEW_MODEL_STORE_OWNER_KEY$1;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
sput-object v0, Landroidx/lifecycle/SavedStateHandleSupport;->b:Landroidx/lifecycle/SavedStateHandleSupport$VIEW_MODEL_STORE_OWNER_KEY$1;
|
|
|
|
.line 14
|
|
.line 15
|
|
new-instance v0, Landroidx/lifecycle/SavedStateHandleSupport$DEFAULT_ARGS_KEY$1;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
sput-object v0, Landroidx/lifecycle/SavedStateHandleSupport;->c:Landroidx/lifecycle/SavedStateHandleSupport$DEFAULT_ARGS_KEY$1;
|
|
|
|
.line 21
|
|
.line 22
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Landroidx/lifecycle/viewmodel/MutableCreationExtras;)Landroidx/lifecycle/SavedStateHandle;
|
|
.locals 7
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sget-object v1, Landroidx/lifecycle/SavedStateHandleSupport;->a:Landroidx/lifecycle/SavedStateHandleSupport$SAVED_STATE_REGISTRY_OWNER_KEY$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p0, v1}, Landroidx/lifecycle/viewmodel/MutableCreationExtras;->a(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v1
|
|
|
|
.line 12
|
|
check-cast v1, Landroidx/savedstate/SavedStateRegistryOwner;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz v1, :cond_8
|
|
|
|
.line 15
|
|
.line 16
|
|
sget-object v2, Landroidx/lifecycle/SavedStateHandleSupport;->b:Landroidx/lifecycle/SavedStateHandleSupport$VIEW_MODEL_STORE_OWNER_KEY$1;
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p0, v2}, Landroidx/lifecycle/viewmodel/MutableCreationExtras;->a(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v2
|
|
|
|
.line 22
|
|
check-cast v2, Landroidx/lifecycle/ViewModelStoreOwner;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v2, :cond_7
|
|
|
|
.line 25
|
|
.line 26
|
|
sget-object v3, Landroidx/lifecycle/SavedStateHandleSupport;->c:Landroidx/lifecycle/SavedStateHandleSupport$DEFAULT_ARGS_KEY$1;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p0, v3}, Landroidx/lifecycle/viewmodel/MutableCreationExtras;->a(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result-object v3
|
|
|
|
.line 32
|
|
check-cast v3, Landroid/os/Bundle;
|
|
|
|
.line 33
|
|
.line 34
|
|
sget-object v4, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;->a:Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory;
|
|
|
|
.line 35
|
|
.line 36
|
|
sget-object v4, Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory$Companion$ViewModelKeyImpl;->a:Landroidx/lifecycle/ViewModelProvider$NewInstanceFactory$Companion$ViewModelKeyImpl;
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {p0, v4}, Landroidx/lifecycle/viewmodel/MutableCreationExtras;->a(Landroidx/lifecycle/viewmodel/CreationExtras$Key;)Ljava/lang/Object;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result-object p0
|
|
|
|
.line 42
|
|
check-cast p0, Ljava/lang/String;
|
|
|
|
.line 43
|
|
.line 44
|
|
if-eqz p0, :cond_6
|
|
|
|
.line 45
|
|
.line 46
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
invoke-interface {v1}, Landroidx/savedstate/SavedStateRegistryOwner;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result-object v0
|
|
|
|
.line 53
|
|
invoke-virtual {v0}, Landroidx/savedstate/SavedStateRegistry;->b()Landroidx/savedstate/SavedStateRegistry$SavedStateProvider;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object v0
|
|
|
|
.line 57
|
|
instance-of v1, v0, Landroidx/lifecycle/SavedStateHandlesProvider;
|
|
|
|
.line 58
|
|
.line 59
|
|
const/4 v4, 0x0
|
|
|
|
.line 60
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 61
|
|
.line 62
|
|
check-cast v0, Landroidx/lifecycle/SavedStateHandlesProvider;
|
|
|
|
.line 63
|
|
.line 64
|
|
goto :goto_0
|
|
|
|
.line 65
|
|
:cond_0
|
|
move-object v0, v4
|
|
|
|
.line 66
|
|
:goto_0
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-static {v2}, Landroidx/lifecycle/SavedStateHandleSupport;->c(Landroidx/lifecycle/ViewModelStoreOwner;)Landroidx/lifecycle/SavedStateHandlesVM;
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
move-result-object v1
|
|
|
|
.line 72
|
|
iget-object v2, v1, Landroidx/lifecycle/SavedStateHandlesVM;->d:Ljava/util/LinkedHashMap;
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-virtual {v2, p0}, Ljava/util/LinkedHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object v2
|
|
|
|
.line 78
|
|
check-cast v2, Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
.line 79
|
|
.line 80
|
|
if-nez v2, :cond_4
|
|
|
|
.line 81
|
|
.line 82
|
|
sget-object v2, Landroidx/lifecycle/SavedStateHandle;->f:[Ljava/lang/Class;
|
|
|
|
.line 83
|
|
.line 84
|
|
const-string v2, "key"
|
|
|
|
.line 85
|
|
.line 86
|
|
invoke-static {p0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
invoke-virtual {v0}, Landroidx/lifecycle/SavedStateHandlesProvider;->b()V
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
iget-object v2, v0, Landroidx/lifecycle/SavedStateHandlesProvider;->c:Landroid/os/Bundle;
|
|
|
|
.line 93
|
|
.line 94
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 95
|
|
.line 96
|
|
invoke-virtual {v2, p0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
move-result-object v2
|
|
|
|
.line 100
|
|
goto :goto_1
|
|
|
|
.line 101
|
|
:cond_1
|
|
move-object v2, v4
|
|
|
|
.line 102
|
|
:goto_1
|
|
iget-object v5, v0, Landroidx/lifecycle/SavedStateHandlesProvider;->c:Landroid/os/Bundle;
|
|
|
|
.line 103
|
|
.line 104
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 105
|
|
.line 106
|
|
invoke-virtual {v5, p0}, Landroid/os/Bundle;->remove(Ljava/lang/String;)V
|
|
|
|
.line 107
|
|
.line 108
|
|
.line 109
|
|
:cond_2
|
|
iget-object v5, v0, Landroidx/lifecycle/SavedStateHandlesProvider;->c:Landroid/os/Bundle;
|
|
|
|
.line 110
|
|
.line 111
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 112
|
|
.line 113
|
|
invoke-virtual {v5}, Landroid/os/BaseBundle;->isEmpty()Z
|
|
|
|
.line 114
|
|
.line 115
|
|
.line 116
|
|
move-result v5
|
|
|
|
.line 117
|
|
const/4 v6, 0x1
|
|
|
|
.line 118
|
|
if-ne v5, v6, :cond_3
|
|
|
|
.line 119
|
|
.line 120
|
|
iput-object v4, v0, Landroidx/lifecycle/SavedStateHandlesProvider;->c:Landroid/os/Bundle;
|
|
|
|
.line 121
|
|
.line 122
|
|
:cond_3
|
|
invoke-static {v2, v3}, Landroidx/lifecycle/SavedStateHandle$Companion;->a(Landroid/os/Bundle;Landroid/os/Bundle;)Landroidx/lifecycle/SavedStateHandle;
|
|
|
|
.line 123
|
|
.line 124
|
|
.line 125
|
|
move-result-object v0
|
|
|
|
.line 126
|
|
iget-object v1, v1, Landroidx/lifecycle/SavedStateHandlesVM;->d:Ljava/util/LinkedHashMap;
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-interface {v1, p0, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
return-object v0
|
|
|
|
.line 132
|
|
:cond_4
|
|
return-object v2
|
|
|
|
.line 133
|
|
:cond_5
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 134
|
|
.line 135
|
|
const-string v0, "enableSavedStateHandles() wasn\'t called prior to createSavedStateHandle() call"
|
|
|
|
.line 136
|
|
.line 137
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 138
|
|
.line 139
|
|
.line 140
|
|
throw p0
|
|
|
|
.line 141
|
|
:cond_6
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 142
|
|
.line 143
|
|
const-string v0, "CreationExtras must have a value by `VIEW_MODEL_KEY`"
|
|
|
|
.line 144
|
|
.line 145
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 146
|
|
.line 147
|
|
.line 148
|
|
throw p0
|
|
|
|
.line 149
|
|
:cond_7
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 150
|
|
.line 151
|
|
const-string v0, "CreationExtras must have a value by `VIEW_MODEL_STORE_OWNER_KEY`"
|
|
|
|
.line 152
|
|
.line 153
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 154
|
|
.line 155
|
|
.line 156
|
|
throw p0
|
|
|
|
.line 157
|
|
:cond_8
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 158
|
|
.line 159
|
|
const-string v0, "CreationExtras must have a value by `SAVED_STATE_REGISTRY_OWNER_KEY`"
|
|
|
|
.line 160
|
|
.line 161
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 162
|
|
.line 163
|
|
.line 164
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static final b(Landroidx/savedstate/SavedStateRegistryOwner;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v0
|
|
|
|
.line 10
|
|
invoke-virtual {v0}, Landroidx/lifecycle/Lifecycle;->b()Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
sget-object v1, Landroidx/lifecycle/Lifecycle$State;->f:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 17
|
|
.line 18
|
|
sget-object v1, Landroidx/lifecycle/Lifecycle$State;->g:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
.line 19
|
|
.line 20
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 24
|
|
.line 25
|
|
const-string v0, "Failed requirement."
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
throw p0
|
|
|
|
.line 31
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p0}, Landroidx/savedstate/SavedStateRegistryOwner;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v0
|
|
|
|
.line 35
|
|
invoke-virtual {v0}, Landroidx/savedstate/SavedStateRegistry;->b()Landroidx/savedstate/SavedStateRegistry$SavedStateProvider;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object v0
|
|
|
|
.line 39
|
|
if-nez v0, :cond_2
|
|
|
|
.line 40
|
|
.line 41
|
|
new-instance v0, Landroidx/lifecycle/SavedStateHandlesProvider;
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-interface {p0}, Landroidx/savedstate/SavedStateRegistryOwner;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result-object v1
|
|
|
|
.line 47
|
|
move-object v2, p0
|
|
|
|
.line 48
|
|
check-cast v2, Landroidx/lifecycle/ViewModelStoreOwner;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-direct {v0, v1, v2}, Landroidx/lifecycle/SavedStateHandlesProvider;-><init>(Landroidx/savedstate/SavedStateRegistry;Landroidx/lifecycle/ViewModelStoreOwner;)V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
invoke-interface {p0}, Landroidx/savedstate/SavedStateRegistryOwner;->getSavedStateRegistry()Landroidx/savedstate/SavedStateRegistry;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object v1
|
|
|
|
.line 57
|
|
const-string v2, "androidx.lifecycle.internal.SavedStateHandlesProvider"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {v1, v2, v0}, Landroidx/savedstate/SavedStateRegistry;->c(Ljava/lang/String;Landroidx/savedstate/SavedStateRegistry$SavedStateProvider;)V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
invoke-interface {p0}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result-object p0
|
|
|
|
.line 66
|
|
new-instance v1, Landroidx/lifecycle/SavedStateHandleAttacher;
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-direct {v1, v0}, Landroidx/lifecycle/SavedStateHandleAttacher;-><init>(Landroidx/lifecycle/SavedStateHandlesProvider;)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {p0, v1}, Landroidx/lifecycle/Lifecycle;->a(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final c(Landroidx/lifecycle/ViewModelStoreOwner;)Landroidx/lifecycle/SavedStateHandlesVM;
|
|
.locals 5
|
|
|
|
.line 1
|
|
const-string v0, "<this>"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0}, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;-><init>()V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
sget-object v1, Landroidx/lifecycle/SavedStateHandleSupport$savedStateHandlesVM$1$1;->c:Landroidx/lifecycle/SavedStateHandleSupport$savedStateHandlesVM$1$1;
|
|
|
|
.line 12
|
|
.line 13
|
|
const-class v2, Landroidx/lifecycle/SavedStateHandlesVM;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->getOrCreateKotlinClass(Ljava/lang/Class;)Lkotlin/reflect/KClass;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v3
|
|
|
|
.line 19
|
|
const-string v4, "clazz"
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
const-string v4, "initializer"
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-static {v1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
new-instance v4, Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {v3}, Lkotlin/jvm/JvmClassMappingKt;->getJavaClass(Lkotlin/reflect/KClass;)Ljava/lang/Class;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v3
|
|
|
|
.line 35
|
|
invoke-direct {v4, v3, v1}, Landroidx/lifecycle/viewmodel/ViewModelInitializer;-><init>(Ljava/lang/Class;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
iget-object v0, v0, Landroidx/lifecycle/viewmodel/InitializerViewModelFactoryBuilder;->a:Ljava/util/ArrayList;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
new-instance v1, Landroidx/lifecycle/viewmodel/InitializerViewModelFactory;
|
|
|
|
.line 44
|
|
.line 45
|
|
const/4 v3, 0x0
|
|
|
|
.line 46
|
|
new-array v3, v3, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result-object v0
|
|
|
|
.line 52
|
|
check-cast v0, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
.line 53
|
|
.line 54
|
|
array-length v3, v0
|
|
|
|
.line 55
|
|
invoke-static {v0, v3}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result-object v0
|
|
|
|
.line 59
|
|
check-cast v0, [Landroidx/lifecycle/viewmodel/ViewModelInitializer;
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-direct {v1, v0}, Landroidx/lifecycle/viewmodel/InitializerViewModelFactory;-><init>([Landroidx/lifecycle/viewmodel/ViewModelInitializer;)V
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
new-instance v0, Landroidx/lifecycle/ViewModelProvider;
|
|
|
|
.line 65
|
|
.line 66
|
|
const-string v3, "owner"
|
|
|
|
.line 67
|
|
.line 68
|
|
invoke-static {p0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
const-string v4, "factory"
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-static {v1, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
invoke-interface {p0}, Landroidx/lifecycle/ViewModelStoreOwner;->getViewModelStore()Landroidx/lifecycle/ViewModelStore;
|
|
|
|
.line 77
|
|
.line 78
|
|
.line 79
|
|
move-result-object v4
|
|
|
|
.line 80
|
|
invoke-static {p0, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
instance-of v3, p0, Landroidx/lifecycle/HasDefaultViewModelProviderFactory;
|
|
|
|
.line 84
|
|
.line 85
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 86
|
|
.line 87
|
|
check-cast p0, Landroidx/lifecycle/HasDefaultViewModelProviderFactory;
|
|
|
|
.line 88
|
|
.line 89
|
|
invoke-interface {p0}, Landroidx/lifecycle/HasDefaultViewModelProviderFactory;->getDefaultViewModelCreationExtras()Landroidx/lifecycle/viewmodel/CreationExtras;
|
|
|
|
.line 90
|
|
.line 91
|
|
.line 92
|
|
move-result-object p0
|
|
|
|
.line 93
|
|
goto :goto_0
|
|
|
|
.line 94
|
|
:cond_0
|
|
sget-object p0, Landroidx/lifecycle/viewmodel/CreationExtras$Empty;->b:Landroidx/lifecycle/viewmodel/CreationExtras$Empty;
|
|
|
|
.line 95
|
|
.line 96
|
|
:goto_0
|
|
invoke-direct {v0, v4, v1, p0}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStore;Landroidx/lifecycle/ViewModelProvider$Factory;Landroidx/lifecycle/viewmodel/CreationExtras;)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
const-string p0, "androidx.lifecycle.internal.SavedStateHandlesVM"
|
|
|
|
.line 100
|
|
.line 101
|
|
invoke-virtual {v0, v2, p0}, Landroidx/lifecycle/ViewModelProvider;->b(Ljava/lang/Class;Ljava/lang/String;)Landroidx/lifecycle/ViewModel;
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
move-result-object p0
|
|
|
|
.line 105
|
|
check-cast p0, Landroidx/lifecycle/SavedStateHandlesVM;
|
|
|
|
.line 106
|
|
.line 107
|
|
return-object p0
|
|
.end method
|