Prepare for some changes to LoaderManager/Loader.

Sorry it is a bit ugly, it is to allow this change to be
checked in prior to the first stage of the framework change
without breaking the build.

Change-Id: I1828579019ac0325d19c070a4c62cd79549e7d51
This commit is contained in:
Dianne Hackborn 2010-12-16 00:44:50 -08:00
parent 303816534d
commit 80769cefb3
7 changed files with 33 additions and 3 deletions

View File

@ -151,7 +151,10 @@ public class ContactStatusLoader extends AsyncTaskLoader<ContactStatusLoader.Res
cancelLoad();
}
@Override
public void reset() {
stopLoading();
}
public void destroy() {
stopLoading();
}

View File

@ -374,6 +374,9 @@ public class MailboxListFragment extends ListFragment implements OnItemClickList
// Clear this for next reload triggered by content changed events.
mAccountChanging = false;
}
public void onLoaderReset(Loader<Cursor> loader) {
}
}
public void onItemClick(AdapterView<?> parent, View view, int position,

View File

@ -1060,6 +1060,9 @@ public class MessageListFragment extends ListFragment
// Clear this for next reload triggered by content changed events.
mMailboxChanging = false;
}
public void onLoaderReset(Loader<MailboxAccountLoader.Result> loader) {
}
}
/**
@ -1137,6 +1140,9 @@ public class MessageListFragment extends ListFragment
// Clear this for next reload triggered by content changed events.
mMailboxChanging = false;
}
public void onLoaderReset(Loader<Cursor> loader) {
}
}
/**

View File

@ -593,6 +593,9 @@ public class MessageListXL extends Activity implements
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
updateAccountList(data);
}
public void onLoaderReset(Loader<Cursor> loader) {
}
});
}

View File

@ -685,6 +685,9 @@ public abstract class MessageViewFragmentBase extends Fragment implements View.O
mFragment.onClickSender();
}
}
public void onLoaderReset(Loader<ContactStatusLoader.Result> loader) {
}
}
private void onSaveAttachment(AttachmentInfo info) {

View File

@ -182,6 +182,9 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
ActivityHelper.GLOBAL_LOADER_ID_MOVE_TO_DIALOG_MAILBOX_LOADER,
null, new MailboxesLoaderCallbacks());
}
public void onLoaderReset(Loader<Long> loader) {
}
}
/**
@ -201,6 +204,9 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
}
mAdapter.changeCursor(data);
}
public void onLoaderReset(Loader<Cursor> loader) {
}
}
/**
@ -269,7 +275,10 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
cancelLoad();
}
@Override
public void reset() {
stopLoading();
}
public void destroy() {
stopLoading();
}

View File

@ -102,7 +102,10 @@ public class MailboxAccountLoader extends AsyncTaskLoader<MailboxAccountLoader.R
cancelLoad();
}
@Override
public void reset() {
stopLoading();
}
public void destroy() {
stopLoading();
}