Skip to content

Commit

Permalink
fixed demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunhui committed Nov 16, 2018
1 parent 0f41884 commit 27d4993
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public void permissionSuccess() {
@Override
public void onResult(VideoResult result) {
List<VideoItem> items = result.getItems();
if(items==null||items.size()<=0){
Toast.makeText(ViewPagerPlayActivity.this, "无本地视频", Toast.LENGTH_SHORT).show();
return;
}
Collections.sort(items, new MCompartor());
mItems.addAll(DataUtils.transList(items));
PlayPagerAdapter pagerAdapter = new PlayPagerAdapter(ViewPagerPlayActivity.this, mItems);
Expand Down

0 comments on commit 27d4993

Please sign in to comment.