public void onDestroy() { if (mLoaderManager != null) { mLoaderManager.destroyLoader(LOADER_ID); } mCallbacks = null; }
public void onDestroy() { if (mLoaderManager != null) { mLoaderManager.destroyLoader(LOADER_ID); } mCallbacks = null; }
private void cancelAndClearLocalMessageLoader() { loaderManager.destroyLoader(LOCAL_MESSAGE_LOADER_ID); }
private void cancelAndClearDecodeLoader() { loaderManager.destroyLoader(DECODE_MESSAGE_LOADER_ID); }
@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); if (loaderManager != null) { loaderManager.destroyLoader(LOADER_ID_ALTERNATES); loaderManager.destroyLoader(LOADER_ID_FILTERING); loaderManager = null; } }
@Override protected void performFiltering(@NonNull CharSequence text, int start, int end, int keyCode) { if (loaderManager == null) { return; } String query = text.subSequence(start, end).toString(); if (TextUtils.isEmpty(query) || query.length() < MINIMUM_LENGTH_FOR_FILTERING) { loaderManager.destroyLoader(LOADER_ID_FILTERING); return; } Bundle args = new Bundle(); args.putString(ARG_QUERY, query); loaderManager.restartLoader(LOADER_ID_FILTERING, args, this); }
public void onClickRemoveAttachment(Uri uri) { Attachment attachment = attachments.get(uri); loaderManager.destroyLoader(attachment.loaderId); attachmentMvpView.removeAttachmentView(attachment); attachments.remove(uri); listener.onAttachmentRemoved(); }
@Override public void onLoadFinished(Loader<List<Recipient>> loader, List<Recipient> data) { if (loaderManager == null) { return; } switch (loader.getId()) { case LOADER_ID_FILTERING: { adapter.setRecipients(data); break; } case LOADER_ID_ALTERNATES: { postShowAlternatesPopup(data); loaderManager.destroyLoader(LOADER_ID_ALTERNATES); break; } } }
@Override public void onDestroy() { loaderManager.destroyLoader(ID_RATE_LOADER); super.onDestroy(); }
@Override public void onDestroy() { loaderManager.destroyLoader(ID_EXCHANGES_LOADER); super.onDestroy(); }
@Override public void onDetach() { getLoaderManager().destroyLoader(ID_TRANSACTION_LOADER); getLoaderManager().destroyLoader(ID_RATE_LOADER); listener = null; resolver = null; super.onDetach(); }
@Override public void onDetach() { super.onDetach(); getLoaderManager().destroyLoader(ID_RATE_LOADER); listener = null; onStopTradeCountDown(); }
@Override public void onDetach() { getLoaderManager().destroyLoader(ID_RATE_LOADER); resolver = null; super.onDetach(); }
@Override public void onDestroy() { config.unregisterOnSharedPreferenceChangeListener(this); loaderManager.destroyLoader(ID_RATE_LOADER); super.onDestroy(); } //
public void loadNewCommentData() { canLoadOldCommentData = true; if (getLoaderManager().getLoader(NEW_COMMENT_LOADER_ID) != null) { return; } progressHeader.setVisibility(View.VISIBLE); getLoaderManager().destroyLoader(OLD_COMMENT_LOADER_ID); getLoaderManager().restartLoader(NEW_COMMENT_LOADER_ID, null, commentMsgCallback); }
public void loadNewRepostData() { canLoadOldRepostData = true; if (getLoaderManager().getLoader(NEW_REPOST_LOADER_ID) != null) { return; } progressHeader.setVisibility(View.VISIBLE); getLoaderManager().destroyLoader(OLD_REPOST_LOADER_ID); getLoaderManager().restartLoader(NEW_REPOST_LOADER_ID, null, repostMsgCallback); }
protected void loadOldMsg(View view) { if (getLoaderManager().getLoader(OLD_MSG_LOADER_ID) != null || !mCanLoadOldData) { return; } getLoaderManager().destroyLoader(NEW_MSG_LOADER_ID); getLoaderManager().restartLoader(OLD_MSG_LOADER_ID, null, msgAsyncTaskLoaderCallback); }
public void loadOldRepostData() { if (getLoaderManager().getLoader(OLD_REPOST_LOADER_ID) != null || !canLoadOldRepostData) { return; } showFooterView(); getLoaderManager().destroyLoader(NEW_REPOST_LOADER_ID); getLoaderManager().restartLoader(OLD_REPOST_LOADER_ID, null, repostMsgCallback); }
public void loadOldCommentData() { if (getLoaderManager().getLoader(OLD_COMMENT_LOADER_ID) != null || !canLoadOldCommentData) { return; } showFooterView(); getLoaderManager().destroyLoader(NEW_COMMENT_LOADER_ID); getLoaderManager().restartLoader(OLD_COMMENT_LOADER_ID, null, commentMsgCallback); }
protected void loadOldMsg(View view) { if (getLoaderManager().getLoader(OLD_USER_LOADER_ID) != null || !canLoadOldData) { return; } getLoaderManager().destroyLoader(NEW_USER_LOADER_ID); mSwipeRefreshLayout.setRefreshing(false); getLoaderManager().restartLoader(OLD_USER_LOADER_ID, null, userAsyncTaskLoaderCallback); }