Merge "Don't mix up loader managers" into honeycomb

This commit is contained in:
Makoto Onuki 2011-02-01 16:03:26 -08:00 committed by Android (Google) Code Review
commit 6c15d943c2

View File

@ -96,9 +96,6 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
@Override
public void onDestroy() {
LoaderManager lm = getActivity().getLoaderManager();
lm.destroyLoader(ActivityHelper.GLOBAL_LOADER_ID_MOVE_TO_DIALOG_MESSAGE_CHECKER);
lm.destroyLoader(ActivityHelper.GLOBAL_LOADER_ID_MOVE_TO_DIALOG_MAILBOX_LOADER);
mDestroyed = true;
super.onDestroy();
}
@ -117,7 +114,7 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
new MailboxesAdapter.EmptyCallback());
builder.setSingleChoiceItems(mAdapter, -1, this);
activity.getLoaderManager().initLoader(
getLoaderManager().initLoader(
ActivityHelper.GLOBAL_LOADER_ID_MOVE_TO_DIALOG_MESSAGE_CHECKER,
null, new MessageCheckerCallback());
@ -178,7 +175,7 @@ public class MoveMessageToDialog extends DialogFragment implements DialogInterfa
return;
}
mAccountId = accountId;
getActivity().getLoaderManager().initLoader(
getLoaderManager().initLoader(
ActivityHelper.GLOBAL_LOADER_ID_MOVE_TO_DIALOG_MAILBOX_LOADER,
null, new MailboxesLoaderCallbacks());
}