From a77e94c6287ab2f9d985783e94b6a22facce3a68 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 13 Feb 2015 08:25:37 +0300 Subject: [PATCH] fix crash on all pre-kitkat devices (lol) --- org.fox.ttrss/src/main/AndroidManifest.xml | 2 +- .../main/java/org/fox/ttrss/FeedCategoriesFragment.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index bc2cee9f..66cd88ba 100755 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ )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);