@Override public MediaDetails getDetails() { MediaObject item = mAlbumSetDataAdapter.getMediaSet(mIndex); if (item != null) { mAlbumSetView.setHighlightItemPath(item.getPath()); return item.getDetails(); } else { return null; } }
@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; } }