* 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>
774 lines
16 KiB
Smali
774 lines
16 KiB
Smali
.class public abstract Landroidx/lifecycle/LiveData;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/lifecycle/LiveData$ObserverWrapper;,
|
|
Landroidx/lifecycle/LiveData$LifecycleBoundObserver;,
|
|
Landroidx/lifecycle/LiveData$AlwaysActiveObserver;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final k:Ljava/lang/Object;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/lang/Object;
|
|
|
|
.field public final b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.field public c:I
|
|
|
|
.field public d:Z
|
|
|
|
.field public volatile e:Ljava/lang/Object;
|
|
|
|
.field public volatile f:Ljava/lang/Object;
|
|
|
|
.field public g:I
|
|
|
|
.field public h:Z
|
|
|
|
.field public i:Z
|
|
|
|
.field public final j:Ljava/lang/Runnable;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Landroidx/lifecycle/LiveData;->k:Ljava/lang/Object;
|
|
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object v0, p0, Landroidx/lifecycle/LiveData;->a:Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance v0, Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-direct {v0}, Landroidx/arch/core/internal/SafeIterableMap;-><init>()V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iput-object v0, p0, Landroidx/lifecycle/LiveData;->b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 17
|
|
.line 18
|
|
const/4 v0, 0x0
|
|
|
|
.line 19
|
|
iput v0, p0, Landroidx/lifecycle/LiveData;->c:I
|
|
|
|
.line 20
|
|
.line 21
|
|
sget-object v0, Landroidx/lifecycle/LiveData;->k:Ljava/lang/Object;
|
|
|
|
.line 22
|
|
.line 23
|
|
iput-object v0, p0, Landroidx/lifecycle/LiveData;->f:Ljava/lang/Object;
|
|
|
|
.line 24
|
|
.line 25
|
|
new-instance v1, Landroidx/lifecycle/LiveData$1;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-direct {v1, p0}, Landroidx/lifecycle/LiveData$1;-><init>(Landroidx/lifecycle/LiveData;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iput-object v1, p0, Landroidx/lifecycle/LiveData;->j:Ljava/lang/Runnable;
|
|
|
|
.line 31
|
|
.line 32
|
|
iput-object v0, p0, Landroidx/lifecycle/LiveData;->e:Ljava/lang/Object;
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v0, -0x1
|
|
|
|
.line 35
|
|
iput v0, p0, Landroidx/lifecycle/LiveData;->g:I
|
|
|
|
.line 36
|
|
.line 37
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-static {}, Landroidx/arch/core/executor/ArchTaskExecutor;->a()Landroidx/arch/core/executor/ArchTaskExecutor;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
iget-object v0, v0, Landroidx/arch/core/executor/ArchTaskExecutor;->a:Landroidx/arch/core/executor/DefaultTaskExecutor;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Landroid/os/Looper;->getThread()Ljava/lang/Thread;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v1
|
|
|
|
.line 22
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
|
|
.line 25
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
.line 26
|
|
.line 27
|
|
const-string v1, "Cannot invoke "
|
|
|
|
.line 28
|
|
.line 29
|
|
const-string v2, " on a background thread"
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {v1, p0, v2}, Landroid/support/v4/media/a;->l(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object p0
|
|
|
|
.line 35
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-boolean v0, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->f:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->g()Z
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result v0
|
|
|
|
.line 10
|
|
if-nez v0, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
invoke-virtual {p1, v0}, Landroidx/lifecycle/LiveData$ObserverWrapper;->c(Z)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_1
|
|
iget v0, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->g:I
|
|
|
|
.line 18
|
|
.line 19
|
|
iget v1, p0, Landroidx/lifecycle/LiveData;->g:I
|
|
|
|
.line 20
|
|
.line 21
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 22
|
|
.line 23
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 24
|
|
:cond_2
|
|
iput v1, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->g:I
|
|
|
|
.line 25
|
|
.line 26
|
|
iget-object p1, p1, Landroidx/lifecycle/LiveData$ObserverWrapper;->c:Landroidx/lifecycle/Observer;
|
|
|
|
.line 27
|
|
.line 28
|
|
iget-object v0, p0, Landroidx/lifecycle/LiveData;->e:Ljava/lang/Object;
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-interface {p1, v0}, Landroidx/lifecycle/Observer;->a(Ljava/lang/Object;)V
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/lifecycle/LiveData;->h:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x1
|
|
|
|
.line 4
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
.line 6
|
|
iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->i:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
|
|
.line 9
|
|
:cond_0
|
|
iput-boolean v1, p0, Landroidx/lifecycle/LiveData;->h:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
:cond_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 12
|
|
iput-boolean v0, p0, Landroidx/lifecycle/LiveData;->i:Z
|
|
|
|
.line 13
|
|
.line 14
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p0, p1}, Landroidx/lifecycle/LiveData;->b(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
const/4 p1, 0x0
|
|
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:cond_2
|
|
iget-object v1, p0, Landroidx/lifecycle/LiveData;->b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
new-instance v2, Landroidx/arch/core/internal/SafeIterableMap$IteratorWithAdditions;
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v2, v1}, Landroidx/arch/core/internal/SafeIterableMap$IteratorWithAdditions;-><init>(Landroidx/arch/core/internal/SafeIterableMap;)V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
iget-object v1, v1, Landroidx/arch/core/internal/SafeIterableMap;->g:Ljava/util/WeakHashMap;
|
|
|
|
.line 32
|
|
.line 33
|
|
sget-object v3, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {v1, v2, v3}, Ljava/util/WeakHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:cond_3
|
|
invoke-virtual {v2}, Landroidx/arch/core/internal/SafeIterableMap$IteratorWithAdditions;->hasNext()Z
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result v1
|
|
|
|
.line 42
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {v2}, Landroidx/arch/core/internal/SafeIterableMap$IteratorWithAdditions;->next()Ljava/lang/Object;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object v1
|
|
|
|
.line 48
|
|
check-cast v1, Ljava/util/Map$Entry;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v1
|
|
|
|
.line 54
|
|
check-cast v1, Landroidx/lifecycle/LiveData$ObserverWrapper;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {p0, v1}, Landroidx/lifecycle/LiveData;->b(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
iget-boolean v1, p0, Landroidx/lifecycle/LiveData;->i:Z
|
|
|
|
.line 60
|
|
.line 61
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 62
|
|
.line 63
|
|
:cond_4
|
|
:goto_0
|
|
iget-boolean v1, p0, Landroidx/lifecycle/LiveData;->i:Z
|
|
|
|
.line 64
|
|
.line 65
|
|
if-nez v1, :cond_1
|
|
|
|
.line 66
|
|
.line 67
|
|
iput-boolean v0, p0, Landroidx/lifecycle/LiveData;->h:Z
|
|
|
|
.line 68
|
|
.line 69
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "observe"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroidx/lifecycle/LiveData;->a(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-interface {p1}, 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;->c:Landroidx/lifecycle/Lifecycle$State;
|
|
|
|
.line 15
|
|
.line 16
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
goto :goto_1
|
|
|
|
.line 19
|
|
:cond_0
|
|
new-instance v0, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, p0, p1, p2}, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;-><init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iget-object v1, p0, Landroidx/lifecycle/LiveData;->b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 25
|
|
.line 26
|
|
invoke-virtual {v1, p2, v0}, Landroidx/arch/core/internal/SafeIterableMap;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
move-result-object p2
|
|
|
|
.line 30
|
|
check-cast p2, Landroidx/lifecycle/LiveData$ObserverWrapper;
|
|
|
|
.line 31
|
|
.line 32
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {p2, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->f(Landroidx/lifecycle/LifecycleOwner;)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v1
|
|
|
|
.line 38
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 39
|
|
.line 40
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 42
|
|
.line 43
|
|
const-string p2, "Cannot add the same observer with different lifecycles"
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
throw p1
|
|
|
|
.line 49
|
|
:cond_2
|
|
:goto_0
|
|
if-eqz p2, :cond_3
|
|
|
|
.line 50
|
|
.line 51
|
|
:goto_1
|
|
return-void
|
|
|
|
.line 52
|
|
:cond_3
|
|
invoke-interface {p1}, Landroidx/lifecycle/LifecycleOwner;->getLifecycle()Landroidx/lifecycle/Lifecycle;
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
move-result-object p1
|
|
|
|
.line 56
|
|
invoke-virtual {p1, v0}, Landroidx/lifecycle/Lifecycle;->a(Landroidx/lifecycle/LifecycleObserver;)V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e(Landroidx/lifecycle/Observer;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "observeForever"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroidx/lifecycle/LiveData;->a(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance v0, Landroidx/lifecycle/LiveData$AlwaysActiveObserver;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {v0, p0, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;-><init>(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iget-object v1, p0, Landroidx/lifecycle/LiveData;->b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v1, p1, v0}, Landroidx/arch/core/internal/SafeIterableMap;->c(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object p1
|
|
|
|
.line 17
|
|
check-cast p1, Landroidx/lifecycle/LiveData$ObserverWrapper;
|
|
|
|
.line 18
|
|
.line 19
|
|
instance-of v1, p1, Landroidx/lifecycle/LiveData$LifecycleBoundObserver;
|
|
|
|
.line 20
|
|
.line 21
|
|
if-nez v1, :cond_1
|
|
|
|
.line 22
|
|
.line 23
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
return-void
|
|
|
|
.line 26
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
.line 27
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->c(Z)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
|
|
.line 31
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v0, "Cannot add the same observer with different lifecycles"
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
throw p1
|
|
.end method
|
|
|
|
.method public f()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
return-void
|
|
.end method
|
|
|
|
.method public g()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
return-void
|
|
.end method
|
|
|
|
.method public h(Landroidx/lifecycle/Observer;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "removeObserver"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroidx/lifecycle/LiveData;->a(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget-object v0, p0, Landroidx/lifecycle/LiveData;->b:Landroidx/arch/core/internal/SafeIterableMap;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {v0, p1}, Landroidx/arch/core/internal/SafeIterableMap;->g(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object p1
|
|
|
|
.line 12
|
|
check-cast p1, Landroidx/lifecycle/LiveData$ObserverWrapper;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez p1, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
return-void
|
|
|
|
.line 17
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroidx/lifecycle/LiveData$ObserverWrapper;->e()V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
const/4 v0, 0x0
|
|
|
|
.line 21
|
|
invoke-virtual {p1, v0}, Landroidx/lifecycle/LiveData$ObserverWrapper;->c(Z)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
return-void
|
|
.end method
|
|
|
|
.method public i(Ljava/lang/Object;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
const-string v0, "setValue"
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-static {v0}, Landroidx/lifecycle/LiveData;->a(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
iget v0, p0, Landroidx/lifecycle/LiveData;->g:I
|
|
|
|
.line 7
|
|
.line 8
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 9
|
|
.line 10
|
|
iput v0, p0, Landroidx/lifecycle/LiveData;->g:I
|
|
|
|
.line 11
|
|
.line 12
|
|
iput-object p1, p0, Landroidx/lifecycle/LiveData;->e:Ljava/lang/Object;
|
|
|
|
.line 13
|
|
.line 14
|
|
const/4 p1, 0x0
|
|
|
|
.line 15
|
|
invoke-virtual {p0, p1}, Landroidx/lifecycle/LiveData;->c(Landroidx/lifecycle/LiveData$ObserverWrapper;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
return-void
|
|
.end method
|