feeds/cats: do not set empty view because doing so obscures headers/footers when there's no content
This commit is contained in:
parent
e45c23962b
commit
a38d90e806
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user