Restore incall view when click on menu icon
This commit is contained in:
parent
8e2a1f5aa3
commit
a5f8439a93
1 changed files with 7 additions and 1 deletions
|
@ -154,7 +154,7 @@ public class LinphoneActivity extends FragmentActivity implements
|
||||||
startActivityForResult(new Intent().setClass(this, SetupActivity.class), FIRST_LOGIN_ACTIVITY);
|
startActivityForResult(new Intent().setClass(this, SetupActivity.class), FIRST_LOGIN_ACTIVITY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setContentView(R.layout.main);
|
setContentView(R.layout.main);
|
||||||
instance = this;
|
instance = this;
|
||||||
fragmentsHistory = new ArrayList<FragmentsAvailable>();
|
fragmentsHistory = new ArrayList<FragmentsAvailable>();
|
||||||
|
@ -1272,6 +1272,12 @@ public class LinphoneActivity extends FragmentActivity implements
|
||||||
LinphoneCall.State callState = call.getState();
|
LinphoneCall.State callState = call.getState();
|
||||||
if (callState == State.IncomingReceived) {
|
if (callState == State.IncomingReceived) {
|
||||||
startActivity(new Intent(this, IncomingCallActivity.class));
|
startActivity(new Intent(this, IncomingCallActivity.class));
|
||||||
|
} else {
|
||||||
|
if (call.getCurrentParamsCopy().getVideoEnabled()) {
|
||||||
|
startVideoActivity(call);
|
||||||
|
} else {
|
||||||
|
startIncallActivity(call);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue