Fixed various call related UI issues

This commit is contained in:
Sylvain Berfini 2019-11-27 16:04:56 +01:00
parent 7192d09048
commit 165e9a8f76
2 changed files with 12 additions and 5 deletions

View file

@ -388,6 +388,8 @@ public class CallActivity extends LinphoneGenericActivity
if (state == Call.State.End || state == Call.State.Released) {
if (core.getCallsNb() == 0) {
finish();
} else {
showVideoControls(false);
}
} else if (state == Call.State.PausedByRemote) {
if (core.getCurrentCall() != null) {
@ -1092,7 +1094,7 @@ public class CallActivity extends LinphoneGenericActivity
mConferenceList.removeAllViews();
for (Call call : mCore.getCalls()) {
if (call.getConference() != null) {
if (call != null && call.getConference() != null) {
if (mCore.isInConference()) {
displayConferenceCall(call);
conferenceDisplayed = true;
@ -1100,11 +1102,16 @@ public class CallActivity extends LinphoneGenericActivity
displayPausedConference();
pausedConferenceDisplayed = true;
}
} else if (call != currentCall) {
} else if (call != null && call != currentCall) {
Call.State state = call.getState();
if (state == Call.State.Paused
|| state == Call.State.PausedByRemote
|| state == Call.State.Pausing) {
displayPausedCall(call);
callThatIsNotCurrentFound = true;
}
}
}
mCallsList.setVisibility(
pausedConferenceDisplayed || callThatIsNotCurrentFound ? View.VISIBLE : View.GONE);

View file

@ -130,7 +130,7 @@ public class CallOutgoingActivity extends LinphoneGenericActivity implements OnC
// CallActivity.class));
}
if (LinphoneManager.getCore().getCallsNb() == 0) {
if (state == State.End || state == State.Released) {
finish();
}
}