Fixed various call related UI issues
This commit is contained in:
parent
7192d09048
commit
165e9a8f76
2 changed files with 12 additions and 5 deletions
|
@ -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,9 +1102,14 @@ public class CallActivity extends LinphoneGenericActivity
|
|||
displayPausedConference();
|
||||
pausedConferenceDisplayed = true;
|
||||
}
|
||||
} else if (call != currentCall) {
|
||||
displayPausedCall(call);
|
||||
callThatIsNotCurrentFound = true;
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue