Fixed a potential null pointer when showing lists help popover on tablets

pull/14/head
Sam Bosley 13 years ago
parent a24821f66e
commit 024f1de1c4

@ -922,7 +922,9 @@ public class TaskListFragment extends ListFragment implements OnScrollListener,
AstridActivity activity = (AstridActivity) getActivity();
if (activity != null) {
if (AndroidUtilities.isTabletSized(activity)) {
activity.getFilterListFragment().showAddListPopover();
FilterListFragment flf = activity.getFilterListFragment();
if (flf != null)
flf.showAddListPopover();
} else {
ActionBar ab = activity.getSupportActionBar();
View anchor = ab.getCustomView().findViewById(R.id.lists_nav);

Loading…
Cancel
Save