createListFooter: check both activity and added
This commit is contained in:
parent
04e22470c1
commit
a0d0507631
@ -282,7 +282,7 @@ public class HeadlinesFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public View createListFooter(int layoutId) {
|
public View createListFooter(int layoutId) {
|
||||||
if (isAdded() || m_activity != null) {
|
if (isAdded() && m_activity != null) {
|
||||||
View view = getActivity().getLayoutInflater().inflate(layoutId, m_list, false);
|
View view = getActivity().getLayoutInflater().inflate(layoutId, m_list, false);
|
||||||
|
|
||||||
// only resize footer if auto mark as read is enabled
|
// only resize footer if auto mark as read is enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user