feeds/cats: do not set empty view because doing so obscures headers/footers when there's no content

This commit is contained in:
Andrew Dolgov 2015-06-08 09:42:31 +03:00
parent e45c23962b
commit a38d90e806
4 changed files with 0 additions and 15 deletions

View File

@ -322,12 +322,6 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
if (m_swipeLayout != null) m_swipeLayout.setRefreshing(false);
if (getView() != null) {
ListView list = (ListView)getView().findViewById(R.id.feeds);
if (list != null) {
list.setEmptyView(getView().findViewById(R.id.no_feeds));
}
View loadingBar = getView().findViewById(R.id.feeds_loading_bar);
if (loadingBar != null) {

View File

@ -301,7 +301,6 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
m_adapter = new FeedListAdapter(getActivity(), R.layout.feeds_row, (ArrayList<Feed>)m_feeds);
m_list.setAdapter(m_adapter);
//list.setEmptyView(view.findViewById(R.id.no_feeds));
m_list.setOnItemClickListener(this);
registerForContextMenu(m_list);
@ -499,12 +498,6 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
if (isDetached()) return;
if (getView() != null) {
ListView list = (ListView)getView().findViewById(R.id.feeds);
if (list != null) {
list.setEmptyView(getView().findViewById(R.id.no_feeds));
}
View loadingBar = getView().findViewById(R.id.feeds_loading_bar);
if (loadingBar != null) {

View File

@ -154,7 +154,6 @@ public class OfflineFeedCategoriesFragment extends BaseFeedlistFragment implemen
m_list.setAdapter(m_adapter);
m_list.setOnItemClickListener(this);
m_list.setEmptyView(view.findViewById(R.id.no_feeds));
registerForContextMenu(m_list);
return view;

View File

@ -175,7 +175,6 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
m_list.setAdapter(m_adapter);
m_list.setOnItemClickListener(this);
m_list.setEmptyView(view.findViewById(R.id.no_feeds));
registerForContextMenu(m_list);
m_enableFeedIcons = m_prefs.getBoolean("download_feed_icons", false);