Exemplo n.º 1
0
 @Override
 protected void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   if (mSubcriber != null) {
     eventBus.unregister(mSubcriber);
   }
 }
  @Override
  public void onDestroy() {
    Log.d(TAG, "onDestroy");
    super.onDestroy();

    eventBus.unregister(this);

    finalizePlayer();

    NotificationManager manager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    manager.cancel(R.id.notification_id);

    abandonAudioFocus();
  }
Exemplo n.º 3
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   mBus.unregister(this);
 }
Exemplo n.º 4
0
 @Override
 protected void onPause() {
   super.onPause();
   mBus.unregister(this);
 }
Exemplo n.º 5
0
 @Override
 protected void onDestroy() {
   // Unregister
   bus.unregister(this);
   super.onDestroy();
 }
 @Override
 public void onDetach() {
   mEventBus.unregister(this);
   getView().hideProgress();
 }
 @Override
 public void onStop() {
   super.onStop();
   mBus.post(MyLocationManager.UnregisterEvent.INSTANCE);
   mBus.unregister(this);
 }
Exemplo n.º 8
0
 @Override
 public void onPause() {
   super.onPause();
   mBus.unregister(this);
 }
 @Override
 public void onPause() {
   bus.unregister(this);
 }
Exemplo n.º 10
0
 @Override
 protected void onDestroy() {
   bus.unregister(this);
   SaleActivitiesStatus.isAlloyListInSAlemOduleIsOpen = false;
   super.onDestroy();
 }
 @Override
 protected void onStop() {
   super.onStop();
   bus.unregister(this);
 }