本文整理了Java中android.content.AsyncTaskLoader.onReset()
方法的一些代码示例,展示了AsyncTaskLoader.onReset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AsyncTaskLoader.onReset()
方法的具体详情如下:
包路径:android.content.AsyncTaskLoader
类名称:AsyncTaskLoader
方法名:onReset
暂无
代码示例来源: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: rciovati/retrofit-loaders-example
@Override
protected void onReset() {
super.onReset();
mCachedResponse = null;
}
代码示例来源:origin: geniusgithub/AndroidDialer
@Override
protected void onReset() {
super.onReset();
onStopLoading();
mAccountSet = null;
}
}
代码示例来源:origin: jclehner/rxdroid
@Override
protected void onReset()
{
super.onReset();
onStopLoading();
mData = null;
}
}
代码示例来源: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: dicodingacademy/a14-made-labs1
@Override
protected void onReset() {
super.onReset();
onStopLoading();
if (mHasResult) {
mData = null;
mHasResult = false;
}
}
代码示例来源:origin: com.j256.ormlite/ormlite-android
@Override
protected void onReset() {
super.onReset();
// ensure the loader is stopped
onStopLoading();
if (cachedResults != null) {
cachedResults.clear();
cachedResults = null;
}
// stop watching for changes
dao.unregisterObserver(this);
}
代码示例来源:origin: geniusgithub/AndroidDialer
@Override
protected void onReset() {
super.onReset();
cancelLoad();
unregisterObserver();
mContact = null;
}
代码示例来源:origin: AndroidHardening/PdfViewer
@Override
protected void onReset() {
super.onReset();
onStopLoading();
onReleaseResources();
}
代码示例来源:origin: sylvek/itracing2
/**
* Must be called from the UI thread, triggered by a
* call to reset(). Here, we make sure our Cursor
* is closed, if it still exists and is not already closed.
*/
@Override
protected void onReset()
{
super.onReset();
// Ensure the loader is stopped
onStopLoading();
if (lastCursor != null && !lastCursor.isClosed()) {
lastCursor.close();
}
lastCursor = 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: ashishbhandari/RetailStore
/**
* 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 (mApps != null) {
onReleaseResources(mApps);
mApps = null;
}
}
代码示例来源:origin: li2/learning-android-open-source
/**
* 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 (mApps != null) {
onReleaseResources(mApps);
mApps = null;
}
// Stop monitoring for changes.
if (mPackageObserver != null) {
getContext().unregisterReceiver(mPackageObserver);
mPackageObserver = null;
}
}
代码示例来源:origin: qiubiteme/android_api_demos
/**
* 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 (mApps != null) {
onReleaseResources(mApps);
mApps = null;
}
// Stop monitoring for changes.
if (mPackageObserver != null) {
getContext().unregisterReceiver(mPackageObserver);
mPackageObserver = null;
}
}
代码示例来源:origin: gearvrf/GearVRf-Demos
/**
* 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 'data'
// if needed.
if (mData != null) {
onReleaseResources(mData);
mData = null;
}
// Stop monitoring for changes.
if (mContentObserver != null) {
unregisterContentObserver();
}
}
内容来源于网络,如有侵权,请联系作者删除!