createListFooter: check both activity and added

This commit is contained in:
Andrew Dolgov 2017-06-04 08:00:00 +03:00
parent 04e22470c1
commit a0d0507631
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ public class HeadlinesFragment extends Fragment {
}
public View createListFooter(int layoutId) {
if (isAdded() || m_activity != null) {
if (isAdded() && m_activity != null) {
View view = getActivity().getLayoutInflater().inflate(layoutId, m_list, false);
// only resize footer if auto mark as read is enabled