diff options
| author | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-12-06 12:37:46 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@madoka.volgo-balt.ru> | 2011-12-06 12:37:46 +0300 |
| commit | 815e40a698057cd8260d962bb7ec83d2bcf8d5ba (patch) | |
| tree | 5360ed2c90e0993d39ea7b3969e754c1879b7328 /src | |
| parent | d8da03554f2c3e1bbbed34758493e5576d9f28ea (diff) | |
use setemptyview on online lists
Diffstat (limited to 'src')
| -rw-r--r-- | src/org/fox/ttrss/FeedsFragment.java | 7 | ||||
| -rw-r--r-- | src/org/fox/ttrss/HeadlinesFragment.java | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/org/fox/ttrss/FeedsFragment.java b/src/org/fox/ttrss/FeedsFragment.java index c82010d9..47d66198 100644 --- a/src/org/fox/ttrss/FeedsFragment.java +++ b/src/org/fox/ttrss/FeedsFragment.java @@ -127,6 +127,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh ListView list = (ListView)view.findViewById(R.id.feeds);
m_adapter = new FeedListAdapter(getActivity(), R.layout.feeds_row, (ArrayList<Feed>)m_feeds);
list.setAdapter(m_adapter);
+ list.setEmptyView(view.findViewById(R.id.no_feeds));
list.setOnItemClickListener(this);
registerForContextMenu(list);
@@ -307,9 +308,9 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh sortFeeds();
- if (m_feeds.size() == 0)
- setLoadingStatus(R.string.no_feeds_to_display, false);
- else
+ //if (m_feeds.size() == 0)
+ // setLoadingStatus(R.string.no_feeds_to_display, false);
+ //else
setLoadingStatus(R.string.blank, false);
if (m_enableFeedIcons && !m_feedIconsChecked) getFeedIcons();
diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 95ba1f9a..cf437258 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -127,6 +127,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, list.setAdapter(m_adapter);
list.setOnItemClickListener(this);
list.setOnScrollListener(this);
+ list.setEmptyView(view.findViewById(R.id.no_headlines));
registerForContextMenu(list);
Log.d(TAG, "onCreateView, feed=" + m_feed);
@@ -278,9 +279,9 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, m_adapter.notifyDataSetChanged();
- if (m_articles.size() == 0)
- setLoadingStatus(R.string.no_headlines_to_display, false);
- else
+ //if (m_articles.size() == 0)
+ // setLoadingStatus(R.string.no_headlines_to_display, false);
+ //else
setLoadingStatus(R.string.blank, false);
m_refreshInProgress = false;
|