discord-jadx/app/src/main/java/c/a/z/u.java

30 lines
975 B
Java

package c.a.z;
import com.discord.stores.StoreVoiceParticipants;
import j0.k.b;
import java.util.Iterator;
import java.util.Map;
/* compiled from: OverlayVoiceBubble.kt */
public final class u<T, R> implements b<Map<Long, ? extends StoreVoiceParticipants.VoiceUser>, StoreVoiceParticipants.VoiceUser> {
public static final u i = new u();
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public StoreVoiceParticipants.VoiceUser call(Map<Long, ? extends StoreVoiceParticipants.VoiceUser> map) {
T t;
Iterator<T> it = map.values().iterator();
while (true) {
if (!it.hasNext()) {
t = null;
break;
}
t = it.next();
if (t.isSpeaking()) {
break;
}
}
return t;
}
}