repair conference
This commit is contained in:
parent
2715cb4ea7
commit
bc7fee112c
1 changed files with 12 additions and 12 deletions
|
@ -147,23 +147,23 @@ public final class LinphoneUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final List<LinphoneCall> getLinphoneCallsNotInConf(LinphoneCore lc) {
|
public static final List<LinphoneCall> getLinphoneCallsNotInConf(LinphoneCore lc) {
|
||||||
List<LinphoneCall> calls = getLinphoneCalls(lc);
|
List<LinphoneCall> l=new ArrayList<LinphoneCall>();
|
||||||
Iterator<LinphoneCall> iterator = calls.iterator();
|
for(LinphoneCall c : lc.getCalls()){
|
||||||
while (iterator.hasNext()) {
|
if (!c.isInConference()){
|
||||||
LinphoneCall call = iterator.next();
|
l.add(c);
|
||||||
if (call.isInConference()) iterator.remove();
|
}
|
||||||
}
|
}
|
||||||
return calls;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final List<LinphoneCall> getLinphoneCallsInConf(LinphoneCore lc) {
|
public static final List<LinphoneCall> getLinphoneCallsInConf(LinphoneCore lc) {
|
||||||
List<LinphoneCall> calls = getLinphoneCalls(lc);
|
List<LinphoneCall> l=new ArrayList<LinphoneCall>();
|
||||||
Iterator<LinphoneCall> iterator = calls.iterator();
|
for(LinphoneCall c : lc.getCalls()){
|
||||||
while (iterator.hasNext()) {
|
if (c.isInConference()){
|
||||||
LinphoneCall call = iterator.next();
|
l.add(c);
|
||||||
if (!call.isInConference()) iterator.remove();
|
}
|
||||||
}
|
}
|
||||||
return calls;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final List<LinphoneCall> getLinphoneCalls(LinphoneCore lc) {
|
public static final List<LinphoneCall> getLinphoneCalls(LinphoneCore lc) {
|
||||||
|
|
Loading…
Reference in a new issue