fix restartLinphoneCore()
This commit is contained in:
parent
dc9eb9cf1d
commit
ecc4cf85cf
3 changed files with 6 additions and 11 deletions
|
@ -550,7 +550,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
|||
}
|
||||
}
|
||||
|
||||
public synchronized final void destroyLinphoneCore(Context c) {
|
||||
public synchronized final void destroyLinphoneCore() {
|
||||
sExited = true;
|
||||
BluetoothManager.getInstance().destroy();
|
||||
try {
|
||||
|
@ -566,10 +566,9 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
|||
}
|
||||
}
|
||||
|
||||
public void restartLinphoneCore(Context context){
|
||||
destroyLinphoneCore(context);
|
||||
startLibLinphone(context);
|
||||
sExited = true;
|
||||
public void restartLinphoneCore(){
|
||||
destroyLinphoneCore();
|
||||
startLibLinphone(mServiceContext);
|
||||
}
|
||||
|
||||
private synchronized void startLibLinphone(Context c) {
|
||||
|
|
|
@ -183,11 +183,7 @@ public class RemoteProvisioningActivity extends Activity {
|
|||
mHandler.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
LinphoneManager.destroy();
|
||||
stopService(new Intent(ACTION_MAIN).setClass(RemoteProvisioningActivity.this, LinphoneService.class));
|
||||
Intent intent = new Intent();
|
||||
intent.setClass(RemoteProvisioningActivity.this, LinphoneLauncherActivity.class);
|
||||
startActivity(intent);
|
||||
LinphoneManager.getInstance().restartLinphoneCore();
|
||||
}
|
||||
}, 1000);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9f2f6163d0cdf8125af94c3719a8f49647d533b1
|
||||
Subproject commit f06140d0758a409a70070aa2bd6f31086613cf1d
|
Loading…
Reference in a new issue