Fixed a crash when swiping between lists before fragment exists

pull/14/head
Sam Bosley 13 years ago
parent d52fd02b87
commit cf486bfed7

@ -403,10 +403,12 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
setListsTitle(tlfPagerAdapter.getPageTitle(position).toString());
TaskListFragment fragment = getTaskListFragment();
if (fragment != null) {
fragment.initiateAutomaticSync();
fragment.requestCommentCountUpdate();
}
}
}
@Override
public void onPageScrolled(int position, float positionOffset,

Loading…
Cancel
Save