fix crash on all pre-kitkat devices (lol)

This commit is contained in:
Andrew Dolgov 2015-02-13 08:25:37 +03:00
parent 9d756d84c6
commit a77e94c628
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="308"
android:versionCode="309"
android:versionName="1.88" >
<uses-sdk

View File

@ -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);