Code example for FragmentActivity

Methods: onDestroy

0
     
    @Override 
    protected void onDestroy() { 
	taskManager.saveAll(); 
	taskManager.setTaskListListener(null); 
        super.onDestroy(); 
    } 
 
    @Override 
    public void taskListsUpdated(final List<TaskList> taskLists) { 
	viewPager.setAdapter(new TaskFragmentPagerAdapter(getSupportFragmentManager(), taskLists)); 
    } 
 
     
}