75 lines
1.9 KiB
Smali
75 lines
1.9 KiB
Smali
.class final Landroidx/lifecycle/Transformations$1;
|
|
.super Ljava/lang/Object;
|
|
.source "Transformations.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/lifecycle/Observer;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/lifecycle/Transformations;->map(Landroidx/lifecycle/LiveData;Ln/a;)Landroidx/lifecycle/LiveData;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Landroidx/lifecycle/Observer<",
|
|
"TX;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic val$mapFunction:Ln/a;
|
|
|
|
.field public final synthetic val$result:Landroidx/lifecycle/MediatorLiveData;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/lifecycle/MediatorLiveData;Ln/a;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/lifecycle/Transformations$1;->val$result:Landroidx/lifecycle/MediatorLiveData;
|
|
|
|
iput-object p2, p0, Landroidx/lifecycle/Transformations$1;->val$mapFunction:Ln/a;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onChanged(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TX;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/lifecycle/Transformations$1;->val$result:Landroidx/lifecycle/MediatorLiveData;
|
|
|
|
iget-object v1, p0, Landroidx/lifecycle/Transformations$1;->val$mapFunction:Ln/a;
|
|
|
|
invoke-interface {v1, p1}, Ln/a;->apply(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|