public void loadAlbums() { mLoaderManager.initLoader(LOADER_ID, null, this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getLoaderManager().initLoader(R.id.loader_id_media_store_data, null, this); }
public void load(@Nullable Album target, boolean enableCapture) { Bundle args = new Bundle(); args.putParcelable(ARGS_ALBUM, target); args.putBoolean(ARGS_ENABLE_CAPTURE, enableCapture); mLoaderManager.initLoader(LOADER_ID, args, this); }
private void initAttachmentContentLoader(Attachment attachment) { if (attachment.state != LoadingState.METADATA) { throw new IllegalStateException("initAttachmentContentLoader can only be called for METADATA state!"); } Bundle bundle = new Bundle(); bundle.putParcelable(LOADER_ARG_ATTACHMENT, attachment.uri); loaderManager.initLoader(attachment.loaderId, bundle, mAttachmentContentLoaderCallback); }
private void initAttachmentInfoLoader(Attachment attachment) { if (attachment.state != LoadingState.URI_ONLY) { throw new IllegalStateException("initAttachmentInfoLoader can only be called for URI_ONLY state!"); } Bundle bundle = new Bundle(); bundle.putParcelable(LOADER_ARG_ATTACHMENT, attachment.uri); loaderManager.initLoader(attachment.loaderId, bundle, mAttachmentInfoLoaderCallback); }
@Override public void onItemSelected(AdapterView<?> parent, View v, int position, long id) { getSupportLoaderManager().initLoader(position, null, this); }
@Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); getLoaderManager().initLoader(0, null, this); }
private void loadVideos() { getSupportLoaderManager().initLoader(0, null, this); }
private void loadVideos() { getSupportLoaderManager().initLoader(0, null, this); }
private void loadVideos() { getSupportLoaderManager().initLoader(0, null, this); }
private void loadVideos() { getSupportLoaderManager().initLoader(0, null, this); }
private void loadVideos() { getSupportLoaderManager().initLoader(0, null, this); }
@Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); // load image data getActivity().getSupportLoaderManager().initLoader(LOADER_ALL, null, mLoaderCallback); }
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); getLoaderManager().initLoader(0, null, this); }
@Override public void onViewCreated(View v, Bundle savedInstanceState) { super.onViewCreated(v, savedInstanceState); RecyclerView rv=v.findViewById(android.R.id.list); rv.setLayoutManager(new LinearLayoutManager(getActivity())); rv.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL)); rv.setAdapter(adapter); getActivity().getSupportLoaderManager().initLoader(0, null, this); }
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); getLoaderManager().initLoader(0, null, this); setOnItemViewClickedListener(this); }
@Override public void onReady() { adapter=new RVCursorAdapter(getLayoutInflater()); RecyclerView rv=getRecyclerView(); setLayoutManager(new LinearLayoutManager(this)); rv.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL)); rv.setAdapter(adapter); getSupportLoaderManager().initLoader(0, null, this); }
@Override public void onReady() { getSupportLoaderManager().initLoader(0, null, this); setLayoutManager(new LinearLayoutManager(this)); setAdapter(new VideoAdapter()); }
@Override public void onReady() { adapter=new RVCursorAdapter(getLayoutInflater()); RecyclerView rv=getRecyclerView(); setLayoutManager(new LinearLayoutManager(this)); rv.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL)); rv.setAdapter(adapter); getSupportLoaderManager().initLoader(0, null, this); }
private void startOrResumeDecodeMessage() { LocalMessageExtractorLoader loader = (LocalMessageExtractorLoader) loaderManager.<MessageViewInfo>getLoader(DECODE_MESSAGE_LOADER_ID); boolean isLoaderStale = (loader == null) || !loader.isCreatedFor(localMessage, messageCryptoAnnotations); if (isLoaderStale) { Timber.d("Creating new decode message loader"); loaderManager.restartLoader(DECODE_MESSAGE_LOADER_ID, null, decodeMessageLoaderCallback); } else { Timber.d("Reusing decode message loader"); loaderManager.initLoader(DECODE_MESSAGE_LOADER_ID, null, decodeMessageLoaderCallback); } }