fix .. entry disappearing if listview is empty

This commit is contained in:
Andrew Dolgov 2014-11-06 22:46:17 +04:00
parent be1e45e9f2
commit af2d3cfc54
3 changed files with 13 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="271"
android:versionName="1.64" >
android:versionCode="272"
android:versionName="1.65" >
<uses-sdk
android:minSdkVersion="9"

View File

@ -591,6 +591,12 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
this.items = items;
}
@Override
public boolean isEmpty() {
return m_enableParentBtn ? false : super.isEmpty();
}
@Override
public int getViewTypeCount() {
return VIEW_COUNT;
}

View File

@ -281,6 +281,11 @@ public class OfflineFeedsFragment extends Fragment implements OnItemClickListene
return VIEW_COUNT;
}
@Override
public boolean isEmpty() {
return m_enableParentBtn ? false : super.isEmpty();
}
@Override
public int getItemViewType(int position) {
Cursor cursor = (Cursor) this.getItem(position);