headlinesfragment: check if getView() exists before assigning list empty
view
This commit is contained in:
parent
da36af7b42
commit
be9c8d6614
@ -1,8 +1,8 @@
|
|||||||
<?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="135"
|
android:versionCode="136"
|
||||||
android:versionName="1.13" >
|
android:versionName="1.14" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="8"
|
||||||
|
@ -357,10 +357,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
protected void onPostExecute(JsonElement result) {
|
protected void onPostExecute(JsonElement result) {
|
||||||
if (isDetached()) return;
|
if (isDetached()) return;
|
||||||
|
|
||||||
ListView list = (ListView)getView().findViewById(R.id.headlines);
|
if (getView() != null) {
|
||||||
|
ListView list = (ListView)getView().findViewById(R.id.headlines);
|
||||||
|
|
||||||
if (list != null) {
|
if (list != null) {
|
||||||
list.setEmptyView(getView().findViewById(R.id.no_headlines));
|
list.setEmptyView(getView().findViewById(R.id.no_headlines));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_activity.setProgressBarVisibility(false);
|
m_activity.setProgressBarVisibility(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user