diff --git a/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java index a721385892dc..287204bb16d1 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/reader/ReaderPostListFragment.java @@ -1948,8 +1948,9 @@ private void showBookmarksSavedLocallyDialog(ShowBookmarkedSavedOnlyLocallyDialo private final ReaderInterfaces.DataLoadedListener mDataLoadedListener = new ReaderInterfaces.DataLoadedListener() { @Override public void onDataLoaded(boolean isEmpty) { - if (!isAdded() || !mHasUpdatedPosts) return; - + if (!isAdded() || !mHasUpdatedPosts) { + return; + } if (isEmpty) { if (getPostListType() != ReaderPostListType.SEARCH_RESULTS || getSearchTabsPosition() == TAB_SITES && getSiteSearchAdapter().isEmpty() @@ -1974,21 +1975,6 @@ public void onDataLoaded(boolean isEmpty) { } }; -// private void fetchInitialData() { -// if (getPostListType() == ReaderPostListType.TAG_FOLLOWED) { -// reloadTags(); -// -// // update the current tag if the list fragment is empty - this will happen if -// // the tag table was previously empty (ie: first run) -// if (isPostAdapterEmpty()) { -// updateCurrentTag(); -// } -// } -// -// if (mReaderViewModel != null) mReaderViewModel.loadTabs(); -// if (mSubFilterViewModel != null) mSubFilterViewModel.loadSubFilters(); -// } - private boolean isBookmarksList() { return getPostListType() == ReaderPostListType.TAG_FOLLOWED && (mCurrentTag != null && mCurrentTag.isBookmarked());