Skip to content

Commit

Permalink
fix: remove unnecessary field for pass objects with Bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiolk committed May 8, 2020
1 parent fb7053d commit 93d26de
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 93d26de

Please sign in to comment.