Skip to content

Commit

Permalink
update support isNeedRotateWithSystem with Detail
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Nov 18, 2020
1 parent 3137e45 commit b4b845c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void clickForFullScreen() {
*/
@Override
public boolean getDetailOrientationRotateAuto() {
return true;
return false;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void onConfigurationChanged(Configuration newConfig) {
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
//如果旋转了就全屏
if (isPlay && !isPause) {
getGSYVideoPlayer().onConfigurationChanged(this, newConfig, isNeedRotateWithSystem() ? orientationUtils : null, hideActionBarWhenFull(), hideStatusBarWhenFull());
getGSYVideoPlayer().onConfigurationChanged(this, newConfig, orientationUtils, hideActionBarWhenFull(), hideStatusBarWhenFull());
}
}

Expand Down Expand Up @@ -261,13 +261,6 @@ public OrientationOption getOrientationOption() {
return null;
}

/**
* 可配置是否需要重力旋转
*/
public boolean isNeedRotateWithSystem() {
return true;
}

/**
* 播放控件
*/
Expand Down

0 comments on commit b4b845c

Please sign in to comment.