- Stop stats refresh timer at end of call
This commit is contained in:
Erwan Croze 2017-02-15 16:05:24 +01:00
parent 5d518f0642
commit 90a013dece

View file

@ -1280,6 +1280,9 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
enableProximitySensing(false); enableProximitySensing(false);
unbindDrawables(findViewById(R.id.topLayout)); unbindDrawables(findViewById(R.id.topLayout));
if (mTimer != null) {
mTimer.cancel();
}
instance = null; instance = null;
super.onDestroy(); super.onDestroy();
System.gc(); System.gc();
@ -1756,6 +1759,7 @@ public class CallActivity extends LinphoneGenericActivity implements OnClickList
mHandler.post(new Runnable() { mHandler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
if (LinphoneManager.getLcIfManagerNotDestroyedOrNull() == null) return;
synchronized(LinphoneManager.getLc()) { synchronized(LinphoneManager.getLc()) {
if (LinphoneActivity.isInstanciated()) { if (LinphoneActivity.isInstanciated()) {
LinphoneCallParams params = call.getCurrentParamsCopy(); LinphoneCallParams params = call.getCurrentParamsCopy();