コード例 #1
0
 @Override
 public MediaDetails getDetails() {
   MediaObject item = mAlbumSetDataAdapter.getMediaSet(mIndex);
   if (item != null) {
     mAlbumSetView.setHighlightItemPath(item.getPath());
     return item.getDetails();
   } else {
     return null;
   }
 }
コード例 #2
0
 @Override
 public MediaDetails getDetails() {
   // this relies on setIndex() being called beforehand
   MediaObject item = mAlbumDataAdapter.get(mIndex);
   if (item != null) {
     mAlbumView.setHighlightItemPath(item.getPath());
     return item.getDetails();
   } else {
     return null;
   }
 }