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

143 lines
4.5 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/lifecycle/Transformations;
.super Ljava/lang/Object;
.source "Transformations.java"
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-10-07 23:23:22 +00:00
.method public static distinctUntilChanged(Landroidx/lifecycle/LiveData;)Landroidx/lifecycle/LiveData;
.locals 2
2019-12-06 03:29:40 +00:00
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-10-07 23:23:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;)",
"Landroidx/lifecycle/LiveData<",
"TX;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$3;
invoke-direct {v1, v0}, Landroidx/lifecycle/Transformations$3;-><init>(Landroidx/lifecycle/MediatorLiveData;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method
2019-07-24 11:27:29 +00:00
.method public static map(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
.locals 2
2019-12-06 03:29:40 +00:00
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/arch/core/util/Function;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
"Y:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;",
"Landroidx/arch/core/util/Function<",
"TX;TY;>;)",
"Landroidx/lifecycle/LiveData<",
"TY;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$1;
invoke-direct {v1, v0, p1}, Landroidx/lifecycle/Transformations$1;-><init>(Landroidx/lifecycle/MediatorLiveData;Landroidx/arch/core/util/Function;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method
.method public static switchMap(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
.locals 2
2019-12-06 03:29:40 +00:00
.param p0 # Landroidx/lifecycle/LiveData;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/arch/core/util/Function;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"<X:",
"Ljava/lang/Object;",
"Y:",
"Ljava/lang/Object;",
">(",
"Landroidx/lifecycle/LiveData<",
"TX;>;",
"Landroidx/arch/core/util/Function<",
"TX;",
"Landroidx/lifecycle/LiveData<",
"TY;>;>;)",
"Landroidx/lifecycle/LiveData<",
"TY;>;"
}
.end annotation
new-instance v0, Landroidx/lifecycle/MediatorLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MediatorLiveData;-><init>()V
new-instance v1, Landroidx/lifecycle/Transformations$2;
invoke-direct {v1, p1, v0}, Landroidx/lifecycle/Transformations$2;-><init>(Landroidx/arch/core/util/Function;Landroidx/lifecycle/MediatorLiveData;)V
invoke-virtual {v0, p0, v1}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
return-object v0
.end method