Update to use new Loader callbacks.

Change-Id: Ib478c2f2314bbae4a380539e22892d85dd9a34b5
This commit is contained in:
Dianne Hackborn 2010-12-20 23:14:01 -08:00
parent d9b251d23b
commit 8b9f2a7284
4 changed files with 15 additions and 15 deletions

View File

@ -141,18 +141,18 @@ public class ContactStatusLoader extends AsyncTaskLoader<ContactStatusLoader.Res
}
@Override
public void startLoading() {
protected void onStartLoading() {
cancelLoad();
forceLoad();
}
@Override
public void stopLoading() {
protected void onStopLoading() {
cancelLoad();
}
@Override
public void reset() {
protected void onReset() {
stopLoading();
}
}

View File

@ -268,18 +268,18 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
}
@Override
public void startLoading() {
protected void onStartLoading() {
cancelLoad();
forceLoad();
}
@Override
public void stopLoading() {
protected void onStopLoading() {
cancelLoad();
}
@Override
public void reset() {
protected void onReset() {
stopLoading();
}
}

View File

@ -92,18 +92,18 @@ public class MailboxAccountLoader extends AsyncTaskLoader<MailboxAccountLoader.R
}
@Override
public void startLoading() {
protected void onStartLoading() {
cancelLoad();
forceLoad();
}
@Override
public void stopLoading() {
protected void onStopLoading() {
cancelLoad();
}
@Override
public void reset() {
protected void onReset() {
stopLoading();
}
}

View File

@ -59,24 +59,24 @@ public class ThrottlingCursorLoader extends CursorLoader {
}
@Override
public void startLoading() {
protected void onStartLoading() {
if (Throttle.DEBUG) debugLog("startLoading");
mThrottle.cancelScheduledCallback();
super.startLoading();
super.onStartLoading();
}
@Override
public void forceLoad() {
protected void onForceLoad() {
if (Throttle.DEBUG) debugLog("forceLoad");
mThrottle.cancelScheduledCallback();
super.forceLoad();
super.onForceLoad();
}
@Override
public void stopLoading() {
protected void onStopLoading() {
if (Throttle.DEBUG) debugLog("stopLoading");
mThrottle.cancelScheduledCallback();
super.stopLoading();
super.onStopLoading();
}
@Override