apkfuckery/com.discord/smali/androidx/lifecycle/Transformations.smali
2019-10-08 01:23:22 +02:00

104 lines
3.3 KiB
Smali

.class public Landroidx/lifecycle/Transformations;
.super Ljava/lang/Object;
.source "Transformations.java"
# direct methods
.method private constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static distinctUntilChanged(Landroidx/lifecycle/LiveData;)Landroidx/lifecycle/LiveData;
.locals 2
.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
.method public static map(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
.locals 2
.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
.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