mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fix double incall acitivty
This commit is contained in:
parent
69148e1a77
commit
e124d9603d
1 changed files with 8 additions and 3 deletions
|
|
@ -417,11 +417,16 @@ public class LinphoneActivity extends TabActivity implements ContactPicked
|
|||
}
|
||||
|
||||
public synchronized void startIncallActivity() {
|
||||
if (IncallActivity.active) {
|
||||
if (IncallActivity.instance() != null && IncallActivity.instance().isActive()) {
|
||||
return;
|
||||
}
|
||||
Intent intent = new Intent().setClass(this, IncallActivity.class);
|
||||
startActivityForResult(intent, incall_activity);
|
||||
mHandler.postDelayed(new Runnable() {
|
||||
public void run() {
|
||||
if (IncallActivity.instance() != null && IncallActivity.instance().isActive()) return;
|
||||
Intent intent = new Intent().setClass(LinphoneActivity.this, IncallActivity.class);
|
||||
startActivityForResult(intent, incall_activity);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
public void startIncomingCallActivity() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue