Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

fix: remove unnecessary field for pass objects with Bundle #2907

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import android.view.View;

import com.annimon.stream.Stream;
import com.evernote.android.state.State;
import com.fastaccess.R;
import com.fastaccess.data.dao.FilesListModel;
Expand Down Expand Up @@ -49,6 +50,7 @@ public class GistFilesListFragment extends BaseFragment<GistFilesListMvp.View, G

public static GistFilesListFragment newInstance(@NonNull ArrayList<FilesListModel> files, boolean isOwner) {
GistFilesListFragment view = new GistFilesListFragment();
Stream.of(files).forEach(filesListModel -> filesListModel.content = null);
view.setArguments(Bundler.start()
.putParcelableArrayList(BundleConstant.ITEM, files)
.put(BundleConstant.EXTRA_TYPE, isOwner)
Expand Down