changed repo structure
This commit is contained in:
@@ -0,0 +1,209 @@
|
||||
.class public final Landroidx/lifecycle/Transformations$switchMap$2;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Transformations.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Landroidx/lifecycle/Observer;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Landroidx/lifecycle/Transformations;->switchMap(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;)Landroidx/lifecycle/LiveData;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Landroidx/lifecycle/Observer<",
|
||||
"TX;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation runtime Lkotlin/Metadata;
|
||||
d1 = {
|
||||
"\u0000\u001b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0002\n\u0002\u0008\u0003*\u0001\u0000\u0008\n\u0018\u00002\u0008\u0012\u0004\u0012\u00028\u00000\u0001J\u0015\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00028\u0000H\u0016\u00a2\u0006\u0002\u0010\u000bR\"\u0010\u0002\u001a\n\u0012\u0004\u0012\u00028\u0001\u0018\u00010\u0003X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0004\u0010\u0005\"\u0004\u0008\u0006\u0010\u0007\u00a8\u0006\u000c"
|
||||
}
|
||||
d2 = {
|
||||
"androidx/lifecycle/Transformations$switchMap$2",
|
||||
"Landroidx/lifecycle/Observer;",
|
||||
"liveData",
|
||||
"Landroidx/lifecycle/LiveData;",
|
||||
"getLiveData",
|
||||
"()Landroidx/lifecycle/LiveData;",
|
||||
"setLiveData",
|
||||
"(Landroidx/lifecycle/LiveData;)V",
|
||||
"onChanged",
|
||||
"",
|
||||
"value",
|
||||
"(Ljava/lang/Object;)V",
|
||||
"lifecycle-livedata_release"
|
||||
}
|
||||
k = 0x1
|
||||
mv = {
|
||||
0x1,
|
||||
0x8,
|
||||
0x0
|
||||
}
|
||||
xi = 0x30
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field final synthetic $result:Landroidx/lifecycle/MediatorLiveData;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/lifecycle/MediatorLiveData<",
|
||||
"TY;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field final synthetic $switchMapFunction:Landroidx/arch/core/util/Function;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/arch/core/util/Function<",
|
||||
"TX;",
|
||||
"Landroidx/lifecycle/LiveData<",
|
||||
"TY;>;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field private liveData:Landroidx/lifecycle/LiveData;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Landroidx/lifecycle/LiveData<",
|
||||
"TY;>;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method constructor <init>(Landroidx/arch/core/util/Function;Landroidx/lifecycle/MediatorLiveData;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroidx/arch/core/util/Function<",
|
||||
"TX;",
|
||||
"Landroidx/lifecycle/LiveData<",
|
||||
"TY;>;>;",
|
||||
"Landroidx/lifecycle/MediatorLiveData<",
|
||||
"TY;>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iput-object p1, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$switchMapFunction:Landroidx/arch/core/util/Function;
|
||||
|
||||
iput-object p2, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$result:Landroidx/lifecycle/MediatorLiveData;
|
||||
|
||||
.line 149
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final getLiveData()Landroidx/lifecycle/LiveData;
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Landroidx/lifecycle/LiveData<",
|
||||
"TY;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 150
|
||||
iget-object v0, p0, Landroidx/lifecycle/Transformations$switchMap$2;->liveData:Landroidx/lifecycle/LiveData;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public onChanged(Ljava/lang/Object;)V
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(TX;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 153
|
||||
iget-object v0, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$switchMapFunction:Landroidx/arch/core/util/Function;
|
||||
|
||||
invoke-interface {v0, p1}, Landroidx/arch/core/util/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
check-cast p1, Landroidx/lifecycle/LiveData;
|
||||
|
||||
.line 154
|
||||
iget-object v0, p0, Landroidx/lifecycle/Transformations$switchMap$2;->liveData:Landroidx/lifecycle/LiveData;
|
||||
|
||||
if-ne v0, p1, :cond_0
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
.line 158
|
||||
iget-object v1, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$result:Landroidx/lifecycle/MediatorLiveData;
|
||||
|
||||
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||||
|
||||
invoke-virtual {v1, v0}, Landroidx/lifecycle/MediatorLiveData;->removeSource(Landroidx/lifecycle/LiveData;)V
|
||||
|
||||
.line 160
|
||||
:cond_1
|
||||
iput-object p1, p0, Landroidx/lifecycle/Transformations$switchMap$2;->liveData:Landroidx/lifecycle/LiveData;
|
||||
|
||||
if-eqz p1, :cond_2
|
||||
|
||||
.line 162
|
||||
iget-object v0, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$result:Landroidx/lifecycle/MediatorLiveData;
|
||||
|
||||
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||||
|
||||
new-instance v1, Landroidx/lifecycle/Transformations$switchMap$2$onChanged$1;
|
||||
|
||||
iget-object v2, p0, Landroidx/lifecycle/Transformations$switchMap$2;->$result:Landroidx/lifecycle/MediatorLiveData;
|
||||
|
||||
invoke-direct {v1, v2}, Landroidx/lifecycle/Transformations$switchMap$2$onChanged$1;-><init>(Landroidx/lifecycle/MediatorLiveData;)V
|
||||
|
||||
check-cast v1, Lkotlin/jvm/functions/Function1;
|
||||
|
||||
new-instance v2, Landroidx/lifecycle/Transformations$sam$androidx_lifecycle_Observer$0;
|
||||
|
||||
invoke-direct {v2, v1}, Landroidx/lifecycle/Transformations$sam$androidx_lifecycle_Observer$0;-><init>(Lkotlin/jvm/functions/Function1;)V
|
||||
|
||||
check-cast v2, Landroidx/lifecycle/Observer;
|
||||
|
||||
invoke-virtual {v0, p1, v2}, Landroidx/lifecycle/MediatorLiveData;->addSource(Landroidx/lifecycle/LiveData;Landroidx/lifecycle/Observer;)V
|
||||
|
||||
:cond_2
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final setLiveData(Landroidx/lifecycle/LiveData;)V
|
||||
.locals 0
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Landroidx/lifecycle/LiveData<",
|
||||
"TY;>;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.line 150
|
||||
iput-object p1, p0, Landroidx/lifecycle/Transformations$switchMap$2;->liveData:Landroidx/lifecycle/LiveData;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
Reference in New Issue
Block a user