Handle starting video activity from service.
This commit is contained in:
parent
3c8a684fcd
commit
9ca92d8237
1 changed files with 10 additions and 0 deletions
|
@ -215,6 +215,12 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
|
|||
startActivity(new Intent()
|
||||
.setClass(this, LinphoneActivity.class)
|
||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
||||
} else if (state == LinphoneCall.State.StreamsRunning) {
|
||||
if (LinphoneActivity.isInstanciated()
|
||||
&& getResources().getBoolean(R.bool.use_video_activity)
|
||||
&& LinphoneManager.getLc().getCurrentCall().getCurrentParamsCopy().getVideoEnabled()) {
|
||||
LinphoneActivity.instance().startVideoActivity();
|
||||
}
|
||||
}
|
||||
|
||||
mHandler.post(new Runnable() {
|
||||
|
@ -270,5 +276,9 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void onAlreadyInVideoCall() {
|
||||
LinphoneActivity.instance().startVideoActivity();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue