|
|
|
|
@ -1492,12 +1492,10 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
super.onPictureInPictureModeChanged(isInPictureInPictureMode); |
|
|
|
|
if (isInPictureInPictureMode) { |
|
|
|
|
PlaybackService.start(mPlayers); |
|
|
|
|
enterFullscreen(); |
|
|
|
|
setSubtitle(10); |
|
|
|
|
hideControl(); |
|
|
|
|
hideSheet(); |
|
|
|
|
} else { |
|
|
|
|
exitFullscreen(); |
|
|
|
|
setForeground(true); |
|
|
|
|
PlaybackService.stop(); |
|
|
|
|
if (isStop()) finish(); |
|
|
|
|
@ -1507,8 +1505,8 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo |
|
|
|
|
@Override |
|
|
|
|
public void onConfigurationChanged(@NonNull Configuration newConfig) { |
|
|
|
|
super.onConfigurationChanged(newConfig); |
|
|
|
|
if (isPort() && newConfig.orientation == 1 && !isRotate()) exitFullscreen(); |
|
|
|
|
if (isPort() && newConfig.orientation == 2) enterFullscreen(); |
|
|
|
|
if (isAutoRotate() && isPort() && newConfig.orientation == 1 && !isRotate()) exitFullscreen(); |
|
|
|
|
if (isAutoRotate() && isPort() && newConfig.orientation == 2) enterFullscreen(); |
|
|
|
|
if (isFullscreen()) Util.hideSystemUI(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|