@Override public void onDestroy() { super.onDestroy(); if (mMediaDetailInfoSupply != null) { mMediaDetailInfoSupply.removeMediaDetailInfoDoneListener(mMediaDetailInfoDoneListener); } }
// get data private void getMediaDetailData() { if (mMediaDetailInfo == null) { if (mMediaInfo != null) { boolean getAll = true; mIntroduceLoadingListView.setShowLoading(true); mMediaDetailInfoSupply.getMediaDetailInfo( mMediaInfo.mediaid, getAll, MediaFeeDef.MEDIA_ALL, null); } } }
private void initDataSupply() { if (mMediaDetailInfoSupply == null) { mMediaDetailInfoSupply = DKApp.getSingleton(MediaDetailInfoSupply.class); mMediaDetailInfoSupply.addMediaDetailInfoDoneListener(mMediaDetailInfoDoneListener); } }