apkfuckery/com.discord/smali/androidx/lifecycle/LiveDataKt.smali

66 lines
1.6 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Landroidx/lifecycle/LiveDataKt;
.super Ljava/lang/Object;
.source "LiveData.kt"
# direct methods
.method public static final observe(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/LifecycleOwner;Lkotlin/jvm/functions/Function1;)Landroidx/lifecycle/Observer;
.locals 1
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TT;>;",
"Landroidx/lifecycle/LifecycleOwner;",
"Lkotlin/jvm/functions/Function1<",
"-TT;",
"Lkotlin/Unit;",
">;)",
"Landroidx/lifecycle/Observer<",
"TT;>;"
}
.end annotation
2020-09-08 08:16:32 +00:00
const/4 v0, 0x0
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p0, :cond_2
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p1, :cond_1
2020-07-08 16:44:49 +00:00
2020-09-08 08:16:32 +00:00
if-eqz p2, :cond_0
2020-07-08 16:44:49 +00:00
new-instance v0, Landroidx/lifecycle/LiveDataKt$observe$wrappedObserver$1;
invoke-direct {v0, p2}, Landroidx/lifecycle/LiveDataKt$observe$wrappedObserver$1;-><init>(Lkotlin/jvm/functions/Function1;)V
invoke-virtual {p0, p1, v0}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
return-object v0
2020-09-08 08:16:32 +00:00
:cond_0
const-string p0, "onChanged"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_1
const-string p0, "owner"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_2
const-string p0, "$this$observe"
invoke-static {p0}, Lk0/n/c/h;->c(Ljava/lang/String;)V
throw v0
2020-07-08 16:44:49 +00:00
.end method