Disable camera when pressing 'back' button while in video call
This commit is contained in:
parent
a01a2c982a
commit
a8c0162086
1 changed files with 3 additions and 2 deletions
|
@ -272,7 +272,8 @@ public class VideoCallActivity extends SoftVolumeActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
Log.d("onPause VideoCallActivity");
|
Log.d("onPause VideoCallActivity (isFinishing:", isFinishing(), ", inCall:", LinphoneManager.getLc().isIncall(), ", changingConf:", getChangingConfigurations());
|
||||||
|
|
||||||
launched=false;
|
launched=false;
|
||||||
synchronized (androidVideoWindowImpl) {
|
synchronized (androidVideoWindowImpl) {
|
||||||
/* this call will destroy native opengl renderer
|
/* this call will destroy native opengl renderer
|
||||||
|
@ -283,7 +284,7 @@ public class VideoCallActivity extends SoftVolumeActivity {
|
||||||
|
|
||||||
LinphoneManager.getLc().setPreviewWindow(null);
|
LinphoneManager.getLc().setPreviewWindow(null);
|
||||||
|
|
||||||
if (!isFinishing() && LinphoneManager.getLc().isIncall()) {
|
if (LinphoneManager.getLc().isIncall()) {
|
||||||
// we're getting paused for real
|
// we're getting paused for real
|
||||||
if (getChangingConfigurations() == 0) {
|
if (getChangingConfigurations() == 0) {
|
||||||
LinphoneManager.getInstance().sendStaticImage(true);
|
LinphoneManager.getInstance().sendStaticImage(true);
|
||||||
|
|
Loading…
Reference in a new issue