2021-08-11 06:37:47 +00:00
|
|
|
package c.a.y;
|
2021-07-24 02:37:17 +00:00
|
|
|
|
|
|
|
import com.discord.stores.StoreVoiceParticipants;
|
2021-08-10 21:19:22 +00:00
|
|
|
import j0.k.b;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Map;
|
2021-07-24 02:37:17 +00:00
|
|
|
/* compiled from: OverlayVoiceBubble.kt */
|
2021-08-10 21:19:22 +00:00
|
|
|
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;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-08-10 21:19:22 +00:00
|
|
|
t = it.next();
|
|
|
|
if (t.isSpeaking()) {
|
|
|
|
break;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-10 21:19:22 +00:00
|
|
|
return t;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|