apkfuckery/com.discord/smali/androidx/work/OverwritingInputMerger.smali
2020-11-12 02:11:44 +00:00

77 lines
1.8 KiB
Smali

.class public final Landroidx/work/OverwritingInputMerger;
.super Landroidx/work/InputMerger;
.source "OverwritingInputMerger.java"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/work/InputMerger;-><init>()V
return-void
.end method
# virtual methods
.method public merge(Ljava/util/List;)Landroidx/work/Data;
.locals 3
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Landroidx/work/Data;",
">;)",
"Landroidx/work/Data;"
}
.end annotation
new-instance v0, Landroidx/work/Data$Builder;
invoke-direct {v0}, Landroidx/work/Data$Builder;-><init>()V
new-instance v1, Ljava/util/HashMap;
invoke-direct {v1}, Ljava/util/HashMap;-><init>()V
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p1
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Landroidx/work/Data;
invoke-virtual {v2}, Landroidx/work/Data;->getKeyValueMap()Ljava/util/Map;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V
goto :goto_0
:cond_0
invoke-virtual {v0, v1}, Landroidx/work/Data$Builder;->putAll(Ljava/util/Map;)Landroidx/work/Data$Builder;
invoke-virtual {v0}, Landroidx/work/Data$Builder;->build()Landroidx/work/Data;
move-result-object p1
return-object p1
.end method