apkfuckery/com.discord/smali/androidx/work/OverwritingInputMerger.smali

78 lines
1.8 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public merge(Ljava/util/List;)Landroidx/work/Data;
2019-07-24 11:27:29 +00:00
.locals 3
2019-12-06 03:29:40 +00:00
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.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-interface {v1, v2}, Ljava/util/Map;->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