提交 b4b845c2 编写于 作者: G guoshuyu

update support isNeedRotateWithSystem with Detail

上级 3137e452
......@@ -114,7 +114,7 @@ public class DetailListPlayer extends GSYBaseActivityDetail<ListGSYVideoPlayer>
*/
@Override
public boolean getDetailOrientationRotateAuto() {
return true;
return false;
}
@Override
......
......@@ -140,7 +140,7 @@ public abstract class GSYBaseADActivityDetail<T extends GSYBaseVideoPlayer, R ex
if (!isPause && getGSYADVideoPlayer().getVisibility() == View.VISIBLE) {
if (isADStarted()) {
isPlay = false;
getGSYADVideoPlayer().getCurrentPlayer().onConfigurationChanged(this, newConfig, isNeedRotateWithSystem() ? mADOrientationUtils : null, hideActionBarWhenFull(), hideStatusBarWhenFull());
getGSYADVideoPlayer().getCurrentPlayer().onConfigurationChanged(this, newConfig, mADOrientationUtils, hideActionBarWhenFull(), hideStatusBarWhenFull());
}
}
super.onConfigurationChanged(newConfig);
......
......@@ -119,7 +119,7 @@ public abstract class GSYBaseActivityDetail<T extends GSYBaseVideoPlayer> extend
super.onConfigurationChanged(newConfig);
//如果旋转了就全屏
if (isPlay && !isPause) {
getGSYVideoPlayer().onConfigurationChanged(this, newConfig, isNeedRotateWithSystem() ? orientationUtils : null, hideActionBarWhenFull(), hideStatusBarWhenFull());
getGSYVideoPlayer().onConfigurationChanged(this, newConfig, orientationUtils, hideActionBarWhenFull(), hideStatusBarWhenFull());
}
}
......@@ -261,13 +261,6 @@ public abstract class GSYBaseActivityDetail<T extends GSYBaseVideoPlayer> extend
return null;
}
/**
* 可配置是否需要重力旋转
*/
public boolean isNeedRotateWithSystem() {
return true;
}
/**
* 播放控件
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册