| | |
| | | Log.i("mResult", "是否是从观看记录点击进来的:" + isFromWatchHistory); |
| | | if (isFromWatchHistory || position > 0) { |
| | | mPosition = getIntent().getIntExtra("playing_position", 0); |
| | | //防止数组越界 |
| | | mPosition = mPosition >= VideoUtil.videoEpisodeList.size() ? VideoUtil.videoEpisodeList.size() - 1 : mPosition; |
| | | EventBus.getDefault().post(videoInfo); |
| | | getUrl(VideoUtil.videoEpisodeList.get(mPosition), isSetup); |
| | | EventBus.getDefault().post(VideoUtil.videoEpisodeList.get(mPosition)); |
| | |
| | | |
| | | @Override |
| | | public void run() { |
| | | EventBus.getDefault().post( |
| | | videoInfo); |
| | | EventBus.getDefault() |
| | | .post(VideoUtil.videoEpisodeList |
| | | .get(0)); |
| | | |
| | | try { |
| | | EventBus.getDefault().post( |
| | | videoInfo); |
| | | EventBus.getDefault() |
| | | .post(VideoUtil.videoEpisodeList |
| | | .get(0)); |
| | | } catch (NullPointerException e) { |
| | | //出现过空指针的异常 |
| | | } |
| | | } |
| | | }, 200); |
| | | } |
| | |
| | | @Override |
| | | public void run() { |
| | | EventBus.getDefault().post(videoInfo); |
| | | int position = getIntent().getIntExtra("playing_position", 0) >= |
| | | VideoUtil.videoEpisodeList.size() ? VideoUtil.videoEpisodeList.size() - 1 : getIntent().getIntExtra("playing_position", |
| | | 0); |
| | | EventBus.getDefault().post( |
| | | VideoUtil.videoEpisodeList.get( |
| | | getIntent().getIntExtra("playing_position", |
| | | 0))); |
| | | VideoUtil.videoEpisodeList.get(position)); |
| | | } |
| | | }, 200); |
| | | } |