コード例 #1
0
  @Override
  public void onDestroy() {
    loaderManager.destroyLoader(ID_RECEIVING_ADDRESS_LOADER);
    loaderManager.destroyLoader(ID_RATE_LOADER);

    super.onDestroy();
  }
コード例 #2
0
  @Override
  public void onPause() {
    prefs.unregisterOnSharedPreferenceChangeListener(this);

    loaderManager.destroyLoader(ID_RATE_LOADER);
    loaderManager.destroyLoader(ID_BALANCE_LOADER);

    activity.unregisterReceiver(broadcastReceiver);

    super.onPause();
  }
コード例 #3
0
  @Override
  public void onDestroy() {
    config.unregisterOnSharedPreferenceChangeListener(this);

    loaderManager.destroyLoader(ID_RATE_LOADER);

    super.onDestroy();
  }
コード例 #4
0
  @Override
  public void onPause() {
    loaderManager.destroyLoader(ID_BALANCE_LOADER);

    activity.unregisterReceiver(broadcastReceiver);

    super.onPause();
  }
コード例 #5
0
  @Override
  public void onPause() {
    loaderManager.destroyLoader(ID_TRANSACTION_LOADER);

    activity.unregisterReceiver(tickReceiver);

    super.onPause();
  }
コード例 #6
0
  @Override
  public void onPause() {
    loaderManager.destroyLoader(ID_RATE_LOADER);

    Nfc.unpublish(nfcManager, activity);

    amountCalculatorLink.setListener(null);

    super.onPause();
  }
コード例 #7
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    // create and auto start loader
    LoaderManager loaderManager = this.getLoaderManager();
    loaderManager.destroyLoader(0);
    loaderManager.initLoader(0, null, this);

    this.mAdapter = new LocationsAdapter(getActivity(), R.layout.fragment_locations_item_view);

    this.setListAdapter(mAdapter);
    this.isListShown = true;
    this.setListShown(false);

    this.getActivity().invalidateOptionsMenu();
  }
コード例 #8
0
 /**
  * Helper method to destroy the loader
  *
  * @param loaderId
  * @param loaderManager
  */
 public static void destroyLoader(@PhotosLoaderId int loaderId, LoaderManager loaderManager) {
   loaderManager.destroyLoader(loaderId);
 }
コード例 #9
0
        @Override
        public void onServiceDisconnected(final ComponentName name) {
          loaderManager.destroyLoader(ID_BLOCK_LOADER);

          service = null;
        }