Skip to content

Commit

Permalink
修复视频播放出现点击无法播放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Jun 20, 2018
1 parent 795e735 commit fe500ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.os.Bundle;

import com.xiao.nicevideoplayer.NiceVideoPlayerManager;
import com.xuexiang.xvideodemo.fragment.MainFragment;
import com.xuexiang.xpage.base.XPageActivity;

Expand All @@ -22,5 +23,17 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
openPage(MainFragment.class);
}

@Override
protected void onStop() {
super.onStop();
NiceVideoPlayerManager.instance().releaseNiceVideoPlayer();
}

@Override
public void onBackPressed() {
if (NiceVideoPlayerManager.instance().onBackPressd()) return;
super.onBackPressed();
}
}

0 comments on commit fe500ad

Please sign in to comment.