Example usage for android.os Bundle putParcelableArrayList

List of usage examples for android.os Bundle putParcelableArrayList

Introduction

In this page you can find the example usage for android.os Bundle putParcelableArrayList.

Prototype

public void putParcelableArrayList(@Nullable String key, @Nullable ArrayList<? extends Parcelable> value) 

Source Link

Document

Inserts a List of Parcelable values into the mapping of this Bundle, replacing any existing value for the given key.

Usage

From source file:dk.cafeanalog.OpeningsFragment.java

public static OpeningsFragment newInstance(List<DayOfOpenings> openings) {
    OpeningsFragment fragment = new OpeningsFragment();

    Bundle args = new Bundle();
    args.putParcelableArrayList(OPENING_CONTENT, new ArrayList<>(openings));

    fragment.setArguments(args);/*from  www. ja v  a2 s  . c o m*/

    return fragment;
}

From source file:com.raychenon.licensedroid.OpenSourceFragment.java

public static OpenSourceFragment newInstance(final ArrayList<OpenSource> openSourceList) {

    OpenSourceFragment fragment = new OpenSourceFragment();

    Bundle args = fragment.getArguments();
    if (args == null) {
        args = new Bundle();
    }//from w  ww.j a  va  2s  .  com
    // Add parameters to the argument bundle
    args.putParcelableArrayList(KEY_ARG_LIST_OPENSOURCE, openSourceList);
    fragment.setArguments(args);
    return fragment;
}

From source file:com.pyamsoft.dontsuckmp.playback.ShowQueueDialog.java

@CheckResult
@NonNull/*  w w w.java  2  s. co  m*/
public static ShowQueueDialog newInstance(@NonNull List<Track> queue) {
    final Bundle args = new Bundle();
    final ShowQueueDialog fragment = new ShowQueueDialog();
    args.putParcelableArrayList(KEY_QUEUE, new ArrayList<>(queue));
    fragment.setArguments(args);
    return fragment;
}

From source file:com.grarak.kerneladiutor.fragments.tools.customcontrols.CreateFragment.java

public static CreateFragment newInstance(ArrayList<Items.Setting> settings) {
    Bundle args = new Bundle();
    args.putParcelableArrayList(SETTINGS_INTENT, settings);
    CreateFragment fragment = new CreateFragment();
    fragment.setArguments(args);/*from  w w w .  ja  va 2s.  c  om*/
    return fragment;
}

From source file:com.raychenon.licensedroid.OpenSourceDialogFragment.java

public static OpenSourceDialogFragment newInstance(final ArrayList<OpenSource> openSourceList) {

    OpenSourceDialogFragment openSourceFragmentDialog = new OpenSourceDialogFragment();

    Bundle args = openSourceFragmentDialog.getArguments();
    if (args == null) {
        args = new Bundle();
    }/*w  w  w  .ja v a  2s  .c om*/
    // Add parameters to the argument bundle
    args.putParcelableArrayList(KEY_ARG_LIST_OPENSOURCE, openSourceList);
    openSourceFragmentDialog.setArguments(args);

    return openSourceFragmentDialog;
}

From source file:org.proninyaroslav.libretorrent.fragments.AddTorrentFilesFragment.java

public static AddTorrentFilesFragment newInstance(ArrayList<BencodeFileItem> files) {
    AddTorrentFilesFragment fragment = new AddTorrentFilesFragment();

    Bundle args = new Bundle();
    args.putParcelableArrayList(TAG_FILES, files);
    fragment.setArguments(args);/*from  ww w  . j a  va  2s. co m*/

    return fragment;
}

From source file:me.trashout.fragment.PhotoFullscreenFragment.java

public static PhotoFullscreenFragment newInstance(ArrayList<FullScreenImage> images, int selectedPhotoPosition,
        boolean exactDate) {
    Bundle b = new Bundle();

    b.putParcelableArrayList(BUNDLE_FULLSCREEN_IMAGES, images);
    b.putInt(BUNDLE_CURRENT_PHOTO_POSITION, selectedPhotoPosition);
    b.putBoolean(BUNDLE_EXACT_DATE, exactDate);

    PhotoFullscreenFragment ret = new PhotoFullscreenFragment();
    ret.setArguments(b);//ww  w  . j a v  a 2  s .  com
    return ret;
}

From source file:org.alfresco.mobile.android.application.fragments.workflow.CreateTaskTypePickerFragment.java

public static CreateTaskTypePickerFragment newInstance(List<Document> docs) {
    CreateTaskTypePickerFragment bf = new CreateTaskTypePickerFragment();
    Bundle b = new Bundle();
    b.putParcelableArrayList(IntentIntegrator.EXTRA_DOCUMENTS, (ArrayList<? extends Parcelable>) docs);
    bf.setArguments(b);//from  w w w .  jav  a2  s .  c om
    return bf;
}

From source file:com.av.remusic.fragmentnet.ArtistInfoMusicFragment.java

public static Fragment getInstance(ArrayList<MusicInfo> mList) {
    ArtistInfoMusicFragment fragment = new ArtistInfoMusicFragment();
    Bundle bundle = new Bundle();
    bundle.putParcelableArrayList("list", mList);
    fragment.setArguments(bundle);//from  ww  w.j  a  va2 s.c  o m

    return fragment;
}

From source file:com.xamoom.android.xamoomcontentblocks.XamoomMapFragment.java

public static XamoomMapFragment newInstance(ArrayList<Spot> spotList, String spotId, String base64Icon) {
    XamoomMapFragment fragment = new XamoomMapFragment();

    Bundle args = new Bundle();
    args.putParcelableArrayList(SPOTS_PARAM, spotList);
    args.putString(SPOT_ID_PARAM, spotId);
    args.putString(ICON_PARAM, base64Icon);
    fragment.setArguments(args);//www.  j av a 2  s .c  o  m

    return fragment;
}