fix clicking on unread only footer behaving as a go offline entry

This commit is contained in:
Andrew Dolgov 2015-06-04 23:49:37 +03:00
parent c30f85616e
commit 131f355ce9
3 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public abstract class BaseFeedlistFragment extends Fragment {
}
});
text.setOnClickListener(new View.OnClickListener() {
footer.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
rowSwitch.setChecked(!rowSwitch.isChecked());

View File

@ -381,7 +381,7 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
return;
}
if (position == list.getCount() - 2) {
if (!m_enableParentBtn && position == list.getCount() - 2) {
m_activity.switchOffline();
return;
}

View File

@ -235,7 +235,7 @@ public class OfflineFeedsFragment extends BaseFeedlistFragment implements OnItem
return;
}
if (position == list.getCount() - 2) {
if (!m_enableParentBtn && position == list.getCount() - 2) {
m_activity.switchOnline();
return;
}