Exemple #1
0
  @Override
  public void onPause() {
    super.onPause();

    // Unregister as broadcast receiver
    LocalBroadcastManager.getInstance(this).unregisterReceiver(pushNotifReceiver);
  }
 @Override
 protected void onPause() {
   super.onPause();
   gifView.stop();
   LinearLayout back_promo = (LinearLayout) findViewById(R.id.back_promo);
   back_promo.setVisibility(View.INVISIBLE);
 }
 @Override
 protected void onPause() {
   super.onPause();
   ServiceManager.getInstance().pauseService(true);
   Log.e(TAG, "stopUpdateTimer");
   DJIDrone.getDjiMC().stopUpdateTimer(); // Stop the update timer for MC to update info
 }
 @Override
 public void onPause() {
   super.onPause();
   if (mCountdownFragment != null) {
     mCountdownFragment.serviceShutdownMagic();
   }
 }
 public void onPause() {
   Localytics.dismissCurrentInAppMessage();
   Localytics.clearInAppMessageDisplayActivity();
   Localytics.closeSession();
   Localytics.upload();
   super.onPause();
 }
  @Override
  public void onPause() {
    // TODO Auto-generated method stub
    super.onPause();

    Log.i(TAG, "onPause");
  }
 @Override
 protected void onPause() {
   super.onPause();
   // To avoid unnecessary battery usage disable BeyondarLocationManager
   // when the activity goes on pause.
   BeyondarLocationManager.disable();
 }
  @Override
  public void onPause() {
    super.onPause();

    // Unregister receivers on pause
    unregisterReceivers();
  }
  @Override
  public void onPause() {
    super.onPause();
    songDBIdsList.clear();

    if (dbHelper != null) {
      dbHelper.close();
      dbHelper = null;
    }

    if (isFinishing()) {
      if (SongsPickerFragment.cursor != null) {
        SongsPickerFragment.cursor.close();
        SongsPickerFragment.cursor = null;
      }

      if (AlbumsPickerFragment.cursor != null) {
        AlbumsPickerFragment.cursor.close();
        AlbumsPickerFragment.cursor = null;
      }

      if (ArtistsPickerFragment.cursor != null) {
        ArtistsPickerFragment.cursor.close();
        ArtistsPickerFragment.cursor = null;
      }
    }
  }
Exemple #10
0
 @Override
 protected void onPause() {
   super.onPause();
   //	unregisterReceivers();
   if (progressdialog != null && progressdialog.isShowing()) {
     progressdialog.dismiss();
   }
 }
 @Override
 protected void onPause() {
   int usedMemBegin = (int) (MemoryHelper.getAvailableMemory() / 1024);
   super.onPause();
   getCase().onHide();
   int usedMemEnd = (int) (MemoryHelper.getAvailableMemory() / 1024);
   log("onPause : " + usedMemBegin + "K -> " + usedMemEnd + "K");
 }
  @Override
  protected void onPause() {
    // save the current settings for updates
    _editor.putBoolean(LocationUtils.KEY_UPDATES_REQUESTED, _updatesRequested);
    _editor.commit();

    super.onPause();
  }
 @Override
 protected void onPause() {
   // TODO Auto-generated method stub
   super.onPause();
   if (spa.basicInfo != null) {
     spa.basicInfo.saveValues();
   }
 }
 @Override
 protected void onPause() {
   Log.d("&9", "onPause");
   showMessageOnUI("onPause(): Stopping positioning.");
   indoorAtlas.stopPositioning();
   unregisterReceiver(btReceiver);
   super.onPause();
 }
 @Override
 protected void onPause() {
   if (sensorHandling != null) {
     sensorHandling.unregister();
     Log.v(getClass().getName(), "ShakeDetector un-registered on pause");
   }
   super.onPause();
 }
 @Override
 protected void onPause() {
   super.onPause();
   if (mGoogleApiClient.isConnected()) {
     LocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, this);
     mGoogleApiClient.disconnect();
   }
 }
  @Override
  protected void onPause() {
    super.onPause();

    if (mAlertDialog != null) if (mAlertDialog.isShowing()) mAlertDialog.dismiss();

    saveComplexPreferences();
  }
  @Override
  protected void onPause() {
    super.onPause();

    if (logtask != null) {
      logtask.cancel(true);
    }
  }
  /*
   * Called when the Activity is going into the background.
   * Parts of the UI may be visible, but the Activity is inactive.
   */
  @Override
  public void onPause() {

    // Save the current setting for updates
    mEditor.putBoolean(LocationUtils.KEY_UPDATES_REQUESTED, mUpdatesRequested);
    mEditor.commit();

    super.onPause();
  }
  @Override
  protected void onPause() {
    if (bound) {
      unbindService(connection);
      bound = false;
    }

    super.onPause();
  }
  @Override
  protected void onPause() {
    super.onPause();

    if (!cacheWordHandler.isLocked()) {
      saveNoteIfNotEmpty();
    }
    cacheWordHandler.disconnectFromService();
  }
Exemple #22
0
  @Override
  protected void onPause() {
    LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
    if (lc != null) {
      lc.removeListener(mListener);
    }

    super.onPause();
  }
 @Override
 protected void onPause() {
   resetCheckboxesStates();
   if (mActionMode != null) {
     mActionMode.finish();
   }
   this.overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
   super.onPause();
 }
  @Override
  protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();

    /*
     * if(Consts.DEVELOPER_MODE) Debug.stopMethodTracing();
     */
  }
 /*
  * TODO: REMOVE THIS AS SOON AS POSSIBLE.
  * onPause: This is an ugly hack for the Playbook, because the Playbook hides the keyboard upon unlock.
  * This causes the visible height to remain less, as if the soft keyboard is still up. This hack must go
  * away as soon as the Playbook doesn't need it anymore.
  */
 @Override
 protected void onPause() {
   super.onPause();
   try {
     InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
     imm.hideSoftInputFromWindow(canvas.getWindowToken(), 0);
   } catch (NullPointerException e) {
   }
 }
  @Override
  /**
   * When this activity pauses, this method sets the current activity to null, fires a javascript
   * 'pause' event, and if the activity is finishing, remove all dialogs associated with it.
   */
  protected void onPause() {
    inForeground = false;
    super.onPause();
    isResumed = false;

    Log.d(TAG, "Activity " + this + " onPause", Log.DEBUG_MODE);

    TiApplication tiApp = getTiApp();
    if (tiApp.isRestartPending()) {
      releaseDialogs(true);
      if (!isFinishing()) {
        finish();
      }
      return;
    }

    if (!windowStack.empty()) {
      windowStack.peek().onWindowFocusChange(false);
    }

    TiApplication.updateActivityTransitionState(true);
    tiApp.setCurrentActivity(this, null);
    TiUIHelper.showSoftKeyboard(getWindow().getDecorView(), false);

    if (this.isFinishing()) {
      releaseDialogs(true);
    } else {
      // release non-persistent dialogs when activity hides
      releaseDialogs(false);
    }

    if (activityProxy != null) {
      activityProxy.fireSyncEvent(TiC.EVENT_PAUSE, null);
    }

    synchronized (lifecycleListeners.synchronizedList()) {
      for (OnLifecycleEvent listener : lifecycleListeners.nonNull()) {
        try {
          TiLifecycle.fireLifecycleEvent(this, listener, TiLifecycle.LIFECYCLE_ON_PAUSE);

        } catch (Throwable t) {
          Log.e(TAG, "Error dispatching lifecycle event: " + t.getMessage(), t);
        }
      }
    }

    // Checkpoint for ti.end event
    if (tiApp != null) {
      tiApp.postAnalyticsEvent(TiAnalyticsEventFactory.createAppEndEvent());
    }
  }
  @Override
  protected void onPause() {
    super.onPause();
    //  Toast.makeText(MainActivity.this, "MainActivity pause call", Toast.LENGTH_SHORT).show();
    // viewPager.stopAutoScroll();
    Log.e("pause call", "pause call");

    PrefUtils.setKioskModeActive(false, getApplicationContext());
    mHomeKeyLocker.unlock();
  }
  @Override
  protected void onPause() {
    super.onPause();

    DialogFragment dialog =
        (DialogFragment) getSupportFragmentManager().findFragmentByTag("passphraseDialog");
    if (dialog != null) {
      dialog.dismiss();
    }
  }
Exemple #29
0
 @Override
 protected void onPause() {
   super.onPause();
   if (this.architectView != null) {
     this.architectView.onPause();
   }
   if (this.locationProvider != null) {
     this.locationProvider.onPause();
   }
 }
 @Override
 public void onPause() {
   super.onPause();
   if (_broadcastReceiver != null) {
     unregisterReceiver(_broadcastReceiver);
   }
   if (newDataReceiver != null) {
     unregisterReceiver(newDataReceiver);
   }
 }