diff options
author | Andrew Dolgov <[email protected]> | 2015-02-13 08:25:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-02-13 08:25:37 +0300 |
commit | a77e94c6287ab2f9d985783e94b6a22facce3a68 (patch) | |
tree | 5a31a920df9bfe461e457725c745e62856b1419d /org.fox.ttrss/src/main/java | |
parent | 9d756d84c6950c6f7ecb0d8ee9763373b18fa7a0 (diff) |
fix crash on all pre-kitkat devices (lol)
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java index c01467c3..b596e269 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/FeedCategoriesFragment.java @@ -219,9 +219,6 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe m_list = (ListView)view.findViewById(R.id.feeds); m_adapter = new FeedCategoryListAdapter(getActivity(), R.layout.feeds_row, (ArrayList<FeedCategory>)m_cats); - m_list.setAdapter(m_adapter); - m_list.setOnItemClickListener(this); - registerForContextMenu(m_list); // TODO: better check if (m_activity.findViewById(R.id.headlines_drawer) != null) { @@ -239,6 +236,10 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe } } + m_list.setAdapter(m_adapter); + m_list.setOnItemClickListener(this); + registerForContextMenu(m_list); + View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar); loadingBar.setVisibility(View.VISIBLE); |