提交 53a65220 编写于 作者: S shuyu

1.4.6 update demo detailplayer

上级 5348954f
......@@ -36,6 +36,7 @@ public class DetailPlayer extends FragmentActivity {
private boolean isFull;
private boolean isPlay;
private boolean isPause;
private OrientationUtils orientationUtils;
......@@ -130,6 +131,19 @@ public class DetailPlayer extends FragmentActivity {
super.onBackPressed();
}
@Override
protected void onPause() {
super.onPause();
isPause = true;
}
@Override
protected void onResume() {
super.onResume();
isPause = false;
}
@Override
protected void onDestroy() {
super.onDestroy();
......@@ -142,7 +156,7 @@ public class DetailPlayer extends FragmentActivity {
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
//如果旋转了就全屏
if (isPlay) {
if (isPlay && !isPause) {
if (newConfig.orientation == ActivityInfo.SCREEN_ORIENTATION_USER) {
if (!detailPlayer.isIfCurrentIsFullscreen()) {
detailPlayer.startWindowFullscreen(DetailPlayer.this, true, true);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册