Fix two incall activities instances when receiving a call
This commit is contained in:
parent
908849e1c9
commit
938f43b70a
2 changed files with 3 additions and 2 deletions
|
@ -152,7 +152,7 @@ public class IncallActivity extends AbstractCalleesActivity implements
|
|||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
IncallActivity.active = false;
|
||||
setActive(false);
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
|
|
|
@ -422,9 +422,10 @@ public class LinphoneActivity extends TabActivity implements ContactPicked
|
|||
}
|
||||
mHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
if (IncallActivity.instance() != null && IncallActivity.instance().isActive()) return;
|
||||
if (IncallActivity.active) return;
|
||||
Intent intent = new Intent().setClass(LinphoneActivity.this, IncallActivity.class);
|
||||
startActivityForResult(intent, incall_activity);
|
||||
IncallActivity.active = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue