Fix conference audio
This commit is contained in:
parent
d2ede2973d
commit
12aca6fb66
2 changed files with 7 additions and 7 deletions
|
@ -229,7 +229,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
boolean remoteVideo = call.getRemoteParams().videoEnabled();
|
boolean remoteVideo = call.getRemoteParams().videoEnabled();
|
||||||
boolean localVideo = call.getCurrentParams().videoEnabled();
|
boolean localVideo = call.getCurrentParams().videoEnabled();
|
||||||
boolean autoAcceptCameraPolicy = LinphonePreferences.instance().shouldAutomaticallyAcceptVideoRequests();
|
boolean autoAcceptCameraPolicy = LinphonePreferences.instance().shouldAutomaticallyAcceptVideoRequests();
|
||||||
if (remoteVideo && !localVideo && !autoAcceptCameraPolicy && !(LinphoneManager.getLc().getConference() != null)) {
|
if (remoteVideo && !localVideo && !autoAcceptCameraPolicy && !LinphoneManager.getLc().isInConference()) {
|
||||||
showAcceptCallUpdateDialog();
|
showAcceptCallUpdateDialog();
|
||||||
createTimerForDialog(SECONDS_BEFORE_DENYING_CALL_UPDATE);
|
createTimerForDialog(SECONDS_BEFORE_DENYING_CALL_UPDATE);
|
||||||
}
|
}
|
||||||
|
@ -591,7 +591,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
private void enableAndRefreshInCallActions() {
|
private void enableAndRefreshInCallActions() {
|
||||||
int confsize = 0;
|
int confsize = 0;
|
||||||
|
|
||||||
if( LinphoneManager.getLc().getConference() != null) {
|
if(LinphoneManager.getLc().isInConference()) {
|
||||||
confsize = LinphoneManager.getLc().getConferenceSize() - (LinphoneManager.getLc().getConference() != null ? 1 : 0);
|
confsize = LinphoneManager.getLc().getConferenceSize() - (LinphoneManager.getLc().getConference() != null ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -951,7 +951,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
|
|
||||||
if (currentCall != null) {
|
if (currentCall != null) {
|
||||||
lc.terminateCall(currentCall);
|
lc.terminateCall(currentCall);
|
||||||
} else if (lc.getConference() != null) {
|
} else if (lc.isInConference()) {
|
||||||
lc.terminateConference();
|
lc.terminateConference();
|
||||||
} else {
|
} else {
|
||||||
lc.terminateAllCalls();
|
lc.terminateAllCalls();
|
||||||
|
@ -1412,7 +1412,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refreshCallList(Resources resources) {
|
public void refreshCallList(Resources resources) {
|
||||||
isConferenceRunning = LinphoneManager.getLc().getConference() != null;
|
isConferenceRunning = LinphoneManager.getLc().isInConference();
|
||||||
List<Call> pausedCalls = LinphoneUtils.getCallsInState(LinphoneManager.getLc(), Arrays.asList(State.PausedByRemote));
|
List<Call> pausedCalls = LinphoneUtils.getCallsInState(LinphoneManager.getLc(), Arrays.asList(State.PausedByRemote));
|
||||||
|
|
||||||
//MultiCalls
|
//MultiCalls
|
||||||
|
@ -1489,7 +1489,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
private void exitConference(final Call call){
|
private void exitConference(final Call call){
|
||||||
Core lc = LinphoneManager.getLc();
|
Core lc = LinphoneManager.getLc();
|
||||||
|
|
||||||
if (call.getConference() != null) {
|
if (lc.isInConference()) {
|
||||||
lc.removeFromConference(call);
|
lc.removeFromConference(call);
|
||||||
if (lc.getConferenceSize() <= 1) {
|
if (lc.getConferenceSize() <= 1) {
|
||||||
lc.leaveConference();
|
lc.leaveConference();
|
||||||
|
@ -1506,7 +1506,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
|
||||||
Core lc = LinphoneManager.getLc();
|
Core lc = LinphoneManager.getLc();
|
||||||
conferenceStatus = (ImageView) findViewById(R.id.conference_pause);
|
conferenceStatus = (ImageView) findViewById(R.id.conference_pause);
|
||||||
if(conferenceStatus != null) {
|
if(conferenceStatus != null) {
|
||||||
if (lc.getConference() != null) {
|
if (lc.isInConference()) {
|
||||||
conferenceStatus.setImageResource(R.drawable.pause_big_over_selected);
|
conferenceStatus.setImageResource(R.drawable.pause_big_over_selected);
|
||||||
lc.leaveConference();
|
lc.leaveConference();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -476,7 +476,7 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On
|
||||||
|
|
||||||
LinphoneContact c = ContactsManager.getInstance().findContactFromAddress(address);
|
LinphoneContact c = ContactsManager.getInstance().findContactFromAddress(address);
|
||||||
String displayName = null;
|
String displayName = null;
|
||||||
final String sipUri = address.asString();
|
final String sipUri = (address != null) ? address.asString() : "";
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
displayName = c.getFullName();
|
displayName = c.getFullName();
|
||||||
LinphoneUtils.setThumbnailPictureFromUri(LinphoneActivity.instance(), holder.contactPicture, c.getThumbnailUri());
|
LinphoneUtils.setThumbnailPictureFromUri(LinphoneActivity.instance(), holder.contactPicture, c.getThumbnailUri());
|
||||||
|
|
Loading…
Reference in a new issue