2026-07-06 19:54:44 +08:00

113 lines
3.4 KiB
Smali

.class Landroidx/work/impl/utils/LiveDataUtils$1;
.super Ljava/lang/Object;
.source "LiveDataUtils.java"
# interfaces
.implements Landroidx/lifecycle/Observer;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/work/impl/utils/LiveDataUtils;->dedupedMappedLiveDataFor(Landroidx/lifecycle/LiveData;Landroidx/arch/core/util/Function;Landroidx/work/impl/utils/taskexecutor/TaskExecutor;)Landroidx/lifecycle/LiveData;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/lifecycle/Observer<",
"TIn;>;"
}
.end annotation
# instance fields
.field mCurrentOutput:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TOut;"
}
.end annotation
.end field
.field final synthetic val$lock:Ljava/lang/Object;
.field final synthetic val$mappingMethod:Landroidx/arch/core/util/Function;
.field final synthetic val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
.field final synthetic val$workTaskExecutor:Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
# direct methods
.method constructor <init>(Landroidx/work/impl/utils/taskexecutor/TaskExecutor;Ljava/lang/Object;Landroidx/arch/core/util/Function;Landroidx/lifecycle/MediatorLiveData;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x1010,
0x1010,
0x1010,
0x1010
}
names = {
"val$workTaskExecutor",
"val$lock",
"val$mappingMethod",
"val$outputLiveData"
}
.end annotation
.line 59
iput-object p1, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->val$workTaskExecutor:Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
iput-object p2, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->val$lock:Ljava/lang/Object;
iput-object p3, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->val$mappingMethod:Landroidx/arch/core/util/Function;
iput-object p4, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->val$outputLiveData:Landroidx/lifecycle/MediatorLiveData;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 p1, 0x0
.line 61
iput-object p1, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->mCurrentOutput:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public onChanged(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10
}
names = {
"input"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TIn;)V"
}
.end annotation
.line 65
iget-object v0, p0, Landroidx/work/impl/utils/LiveDataUtils$1;->val$workTaskExecutor:Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
new-instance v1, Landroidx/work/impl/utils/LiveDataUtils$1$1;
invoke-direct {v1, p0, p1}, Landroidx/work/impl/utils/LiveDataUtils$1$1;-><init>(Landroidx/work/impl/utils/LiveDataUtils$1;Ljava/lang/Object;)V
invoke-interface {v0, v1}, Landroidx/work/impl/utils/taskexecutor/TaskExecutor;->executeOnBackgroundThread(Ljava/lang/Runnable;)V
return-void
.end method