コード例 #1
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mMediaDetailInfoSupply != null) {
     mMediaDetailInfoSupply.removeMediaDetailInfoDoneListener(mMediaDetailInfoDoneListener);
   }
 }
コード例 #2
0
 // 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);
     }
   }
 }
コード例 #3
0
 private void initDataSupply() {
   if (mMediaDetailInfoSupply == null) {
     mMediaDetailInfoSupply = DKApp.getSingleton(MediaDetailInfoSupply.class);
     mMediaDetailInfoSupply.addMediaDetailInfoDoneListener(mMediaDetailInfoDoneListener);
   }
 }