29 lines
975 B
Java
29 lines
975 B
Java
package c.a.y;
|
|
|
|
import com.discord.stores.StoreVoiceParticipants;
|
|
import j0.k.b;
|
|
import java.util.Iterator;
|
|
import java.util.Map;
|
|
/* compiled from: OverlayVoiceBubble.kt */
|
|
public final class v<T, R> implements b<Map<Long, ? extends StoreVoiceParticipants.VoiceUser>, StoreVoiceParticipants.VoiceUser> {
|
|
public static final v i = new v();
|
|
|
|
/* 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;
|
|
}
|
|
}
|