Start incall act. from incoming call act.
This commit is contained in:
parent
889bd26ea0
commit
c4a81663cf
2 changed files with 2 additions and 5 deletions
|
@ -140,6 +140,8 @@ public class IncomingCallActivity extends Activity implements LinphoneOnCallStat
|
||||||
if (!LinphoneManager.getInstance().acceptCall(mCall)) {
|
if (!LinphoneManager.getInstance().acceptCall(mCall)) {
|
||||||
// the above method takes care of Samsung Galaxy S
|
// the above method takes care of Samsung Galaxy S
|
||||||
Toast.makeText(this, R.string.couldnt_accept_call, Toast.LENGTH_LONG);
|
Toast.makeText(this, R.string.couldnt_accept_call, Toast.LENGTH_LONG);
|
||||||
|
} else {
|
||||||
|
LinphoneActivity.instance().startIncallActivity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -492,11 +492,6 @@ public class LinphoneActivity extends TabActivity implements
|
||||||
stopOrientationSensor();
|
stopOrientationSensor();
|
||||||
finishActivity(INCOMING_CALL_ACTIVITY);
|
finishActivity(INCOMING_CALL_ACTIVITY);
|
||||||
}
|
}
|
||||||
if (state==State.Connected) {
|
|
||||||
if (call.getDirection() == CallDirection.Incoming) {
|
|
||||||
startIncallActivity();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (state == LinphoneCall.State.StreamsRunning && Version.isVideoCapable() && !call.isInConference()) {
|
if (state == LinphoneCall.State.StreamsRunning && Version.isVideoCapable() && !call.isInConference()) {
|
||||||
boolean videoEnabled = call.getCurrentParamsCopy().getVideoEnabled();
|
boolean videoEnabled = call.getCurrentParamsCopy().getVideoEnabled();
|
||||||
if (videoEnabled) {
|
if (videoEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue