fix crash on all pre-kitkat devices (lol)
This commit is contained in:
parent
9d756d84c6
commit
a77e94c628
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="308"
|
android:versionCode="309"
|
||||||
android:versionName="1.88" >
|
android:versionName="1.88" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
|
@ -219,9 +219,6 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
|
|||||||
|
|
||||||
m_list = (ListView)view.findViewById(R.id.feeds);
|
m_list = (ListView)view.findViewById(R.id.feeds);
|
||||||
m_adapter = new FeedCategoryListAdapter(getActivity(), R.layout.feeds_row, (ArrayList<FeedCategory>)m_cats);
|
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
|
// TODO: better check
|
||||||
if (m_activity.findViewById(R.id.headlines_drawer) != null) {
|
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);
|
View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar);
|
||||||
loadingBar.setVisibility(View.VISIBLE);
|
loadingBar.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user