Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLukas committed Feb 6, 2024
1 parent bcc72b8 commit e4c4f93
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public class ReaderBlogFragment extends Fragment

@Inject ReaderTracker mReaderTracker;

private boolean mIsFirstDataLoaded;
private final ReaderBlogList mInitialReaderBlogList = new ReaderBlogList();

private static final String ARG_BLOG_TYPE = "blog_type";
private static final String KEY_SEARCH_FILTER = "search_filter";

Expand Down Expand Up @@ -152,12 +149,6 @@ public void onResume() {
refresh();
}

@Override
public void onAttach(Context context) {
super.onAttach(context);
mIsFirstDataLoaded = true;
}

/*
* note this will only be called for followed blogs
*/
Expand Down Expand Up @@ -240,13 +231,6 @@ private ReaderBlogAdapter getBlogAdapter() {
mAdapter.setBlogClickListener(this);
mAdapter.setDataLoadedListener(isEmpty -> {
checkEmptyView();
if (mIsFirstDataLoaded) {
mIsFirstDataLoaded = false;
mInitialReaderBlogList.clear();
if (mAdapter != null && mAdapter.getItems() != null) {
mInitialReaderBlogList.addAll(mAdapter.getItems());
}
}
});
}
return mAdapter;
Expand Down

0 comments on commit e4c4f93

Please sign in to comment.