public synchronized void onDestroy() { instance = null; LinphoneManager.destroy(); if (Version.sdkAboveOrEqual(12)) { this.mWifiLock.release(); } ((AlarmManager) getSystemService("alarm")).cancel(this.mKeepAlivePendingIntent); super.onDestroy(); }
@Override public synchronized void onDestroy() { instance = null; LinphoneManager.getLc().setPresenceInfo(0, null, OnlineStatus.Offline); LinphoneManager.destroy(); // Make sure our notification is gone. // stopForegroundCompat(NOTIF_ID); // mNM.cancel(INCALL_NOTIF_ID); mWifiLock.release(); super.onDestroy(); }