Skip to content

Commit

Permalink
Update LatestFragment.java
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
danimahardhika committed Oct 30, 2017
1 parent edfd065 commit 0563d91
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -32,6 +32,7 @@
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
Expand Down Expand Up @@ -88,7 +89,10 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
StaggeredGridLayoutManager.VERTICAL);
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
mRecyclerView.setLayoutManager(mManager);
mRecyclerView.setHasFixedSize(false);

mWallpapers = new ArrayList<>();
mAdapter = new LatestAdapter(getActivity(), mWallpapers);
mRecyclerView.setAdapter(mAdapter);

mSwipe.setColorSchemeColors(ColorHelper.getAttributeColor(
getActivity(), R.attr.colorAccent));
Expand Down

0 comments on commit 0563d91

Please sign in to comment.