Code example for FragmentStatePagerAdapter

Methods: notifyDataSetChanged

0
			swapCursor(episodesData);
		} 
 
		public void swapCursor(Cursor episodesData) {
			this.episodesData = episodesData;
			this.notifyDataSetChanged();
		} 
 
		@Override 
		public int getCount() { 
			if (episodesData != null) {
				return episodesData.getCount();
			} else { 
				return 0; 
			} 
		} 
 
		@Override 
		public Fragment getItem(int position) {
			int idColumnIndex =