discord-jadx/app/src/main/java/com/discord/stores/StoreApplicationInteraction...

46 lines
2.1 KiB
Java

package com.discord.stores;
import com.discord.stores.StoreApplicationInteractions;
import d0.z.d.o;
import java.util.LinkedHashMap;
import java.util.Map;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
/* compiled from: StoreApplicationInteractions.kt */
public final class StoreApplicationInteractions$clearComponentInteractionSendSuccessAndFailures$1 extends o implements Function0<Unit> {
public final /* synthetic */ StoreApplicationInteractions this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public StoreApplicationInteractions$clearComponentInteractionSendSuccessAndFailures$1(StoreApplicationInteractions storeApplicationInteractions) {
super(0);
this.this$0 = storeApplicationInteractions;
}
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public final void mo1invoke() {
LinkedHashMap linkedHashMap;
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
for (Number number : this.this$0.getInteractionComponentSendState().keySet()) {
long longValue = number.longValue();
Map<Integer, StoreApplicationInteractions.InteractionSendState> map = this.this$0.getInteractionComponentSendState().get(Long.valueOf(longValue));
if (map != null) {
linkedHashMap = new LinkedHashMap();
for (Map.Entry<Integer, StoreApplicationInteractions.InteractionSendState> entry : map.entrySet()) {
if (entry.getValue() instanceof StoreApplicationInteractions.InteractionSendState.Loading) {
linkedHashMap.put(entry.getKey(), entry.getValue());
}
}
} else {
linkedHashMap = null;
}
if (linkedHashMap != null) {
linkedHashMap2.put(Long.valueOf(longValue), linkedHashMap);
}
}
this.this$0.getInteractionComponentSendState().clear();
this.this$0.getInteractionComponentSendState().putAll(linkedHashMap2);
this.this$0.markChanged(StoreApplicationInteractions.Companion.getComponentStateUpdate());
}
}