android.support.v4.content.AsyncTaskLoader.onReset()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中android.support.v4.content.AsyncTaskLoader.onReset()方法的一些代码示例,展示了AsyncTaskLoader.onReset()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsyncTaskLoader.onReset()方法的具体详情如下:
包路径:android.support.v4.content.AsyncTaskLoader
类名称:AsyncTaskLoader
方法名:onReset

AsyncTaskLoader.onReset介绍

暂无

代码示例

代码示例来源:origin: commonsguy/cw-omnibus

@Override
 protected void onReset() {
  super.onReset();

  onStopLoading();
  // plus any actual cleanup
 }
}

代码示例来源:origin: bumptech/glide

@Override
protected void onReset() {
 super.onReset();
 onStopLoading();
 cached = null;
 unregisterContentObserver();
}

代码示例来源:origin: yahoo/squidb

@Override
protected void onReset() {
  super.onReset();
  // Ensure the loader is stopped
  onStopLoading();
  if (cursor != null && !cursor.isClosed()) {
    cursor.close();
  }
  cursor = null;
}

代码示例来源:origin: livroandroid/5ed

@Override
protected void onReset() {
  super.onReset();
  // Chamado caso o loader tenha sido cancelado pelo método reset()
  Log.d("livroandroid", "loader onReset()");
  this.bitmap = null;
}

代码示例来源:origin: spacecowboy/NoNonsense-FilePicker

/**
   * Handles a request to completely reset the Loader.
   */
  @Override
  protected void onReset() {
    super.onReset();
    // Stop watching
    if (fileObserver != null) {
      fileObserver.stopWatching();
      fileObserver = null;
    }
  }
};

代码示例来源:origin: jahirfiquitiva/IconShowcase

@Override
protected void onReset() {
  super.onReset();
  onStopLoading();
  if (hasResult) {
    this.data = null;
    this.hasResult = false;
  }
}

代码示例来源:origin: com.codeslap/groundy

@Override
protected void onReset() {
  super.onReset();
  // Ensure the loader is stopped
  onStopLoading();
  if (mList != null && mList.size() > 0) {
    mList.clear();
  }
  mList = null;
}

代码示例来源:origin: googlesamples/android-NfcProvisioning

@Override
protected void onReset() {
  super.onReset();
  onStopLoading();
  mValues = null;
}

代码示例来源:origin: SMSTicket/sms-ticket

@Override
  protected void onReset() {
    super.onReset();
    onStopLoading();
    data = null;
  }
}

代码示例来源:origin: grzegorznittner/chanu

@Override
protected void onReset() {
  super.onReset();
  if (DEBUG) Log.i(TAG, "onReset cursor: " + mCursor);
  // Ensure the loader is stopped
  onStopLoading();
  if (mCursor != null && !mCursor.isClosed()) {
    mCursor.close();
  }
  mCursor = null;
}

代码示例来源:origin: com.google.android/support-v4

@Override
protected void onReset() {
  super.onReset();
  
  // Ensure the loader is stopped
  onStopLoading();
  if (mCursor != null && !mCursor.isClosed()) {
    mCursor.close();
  }
  mCursor = null;
}

代码示例来源:origin: tagtime/TagTime

@Override
  protected void onReset() {
    super.onReset();

    // Ensure the loader is stopped
    onStopLoading();

    if (mCursor != null && !mCursor.isClosed()) {
      mCursor.close();
    }
    mCursor = null;
  }
}

代码示例来源:origin: SimonMarquis/Android-SecretCodes

@Override
protected void onReset() {
  super.onReset();
  onStopLoading();
  if (codes != null) {
    codes = null;
  }
  if (packageObserver != null) {
    getContext().unregisterReceiver(packageObserver);
    packageObserver = null;
  }
}

代码示例来源:origin: kingargyle/adt-leanback-support

@Override
protected void onReset() {
  super.onReset();
  
  // Ensure the loader is stopped
  onStopLoading();
  if (mCursor != null && !mCursor.isClosed()) {
    mCursor.close();
  }
  mCursor = null;
}

代码示例来源:origin: tupunco/tup.dota2recipe

@Override
protected void onReset() {
  super.onReset();
  onStopLoading();
  if (cDataList != null) {
    onReleaseResources(cDataList);
    cDataList = null;
  }
}

代码示例来源:origin: techyourchance/idocare-android

@Override
protected void onReset() {
  super.onReset();
  // Ensure the loader is stopped
  onStopLoading();
  mLocalCacheUserData.setChangeListener(null, null);
  mUserItem = null;
}

代码示例来源:origin: Cleveroad/MusicBobber

/**
 * Handles a request to completely reset the Loader.
 */
@Override
protected void onReset() {
  super.onReset();
  // Ensure the loader is stopped
  onStopLoading();
  // At this point we can release the resources associated with 'apps'
  // if needed.
  if (mData != null) {
    onReleaseResources(mData);
    mData = null;
  }
}

代码示例来源:origin: com.j256.ormlite/ormlite-android

@Override
protected void onReset() {
  super.onReset();
  onStopLoading();
  if (cursor != null) {
    if (!cursor.isClosed()) {
      cursor.close();
    }
    cursor = null;
  }
  // stop watching for changes
  dao.unregisterObserver(this);
}

代码示例来源:origin: n76/wifi_backend

@Override
  protected void onReset() {
    super.onReset();

    LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(changeReceiver);
    changeReceiver = null;
  }
}

代码示例来源:origin: n76/wifi_backend

@Override
protected void onReset() {
  super.onReset();
  LocalBroadcastManager.getInstance(getContext()).unregisterReceiver(changeReceiver);
  changeReceiver = null;
  // stop loader
  onStopLoading();
  if (cursor != null && !cursor.isClosed()) {
    cursor.close();
  }
  cursor = null;
}

相关文章