Пример #1
0
 public synchronized void onDestroy() {
   instance = null;
   LinphoneManager.destroy();
   if (Version.sdkAboveOrEqual(12)) {
     this.mWifiLock.release();
   }
   ((AlarmManager) getSystemService("alarm")).cancel(this.mKeepAlivePendingIntent);
   super.onDestroy();
 }
Пример #2
0
  @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();
  }