mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
fix merge
Changelog: changed
This commit is contained in:
+1
-7
@@ -301,7 +301,6 @@ class VideoDetailFragment() : MainFragment() {
|
||||
}
|
||||
fun closeVideoDetails() {
|
||||
Logger.i(TAG, "closeVideoDetails()")
|
||||
_viewDetail?.onPlayChanged?.emit(false)
|
||||
state = State.CLOSED;
|
||||
_viewDetail?.onStop();
|
||||
close();
|
||||
@@ -326,11 +325,6 @@ class VideoDetailFragment() : MainFragment() {
|
||||
closeVideoDetails();
|
||||
};
|
||||
viewDetail.onMaximize.subscribe { maximizeVideoDetail(it) };
|
||||
viewDetail.onPlayChanged.subscribe {
|
||||
val params = _viewDetail?.getPictureInPictureParams(it)
|
||||
if (params != null)
|
||||
activity?.setPictureInPictureParams(params)
|
||||
}
|
||||
viewDetail.onEnterPictureInPicture.subscribe {
|
||||
Logger.i(TAG, "onEnterPictureInPicture")
|
||||
isInPictureInPicture = true;
|
||||
@@ -419,7 +413,7 @@ class VideoDetailFragment() : MainFragment() {
|
||||
}
|
||||
|
||||
fun forcePictureInPicture() {
|
||||
val params = _viewDetail?.getPictureInPictureParams(true);
|
||||
val params = _viewDetail?.getPictureInPictureParams();
|
||||
if(params != null)
|
||||
activity?.enterPictureInPictureMode(params);
|
||||
}
|
||||
|
||||
+3
-3
@@ -2733,7 +2733,7 @@ class VideoDetailView(fragment: VideoDetailFragment, inflater: LayoutInflater) :
|
||||
_container_content.visibility = GONE
|
||||
_layoutPlayerContainer.setPadding(0, 0, 0, 0);
|
||||
|
||||
val lp = _container_content.layoutParams as LayoutParams;
|
||||
val lp = _container_content.layoutParams as ConstraintLayout.LayoutParams;
|
||||
lp.topMargin = 0;
|
||||
_container_content.layoutParams = lp;
|
||||
|
||||
@@ -2747,7 +2747,7 @@ class VideoDetailView(fragment: VideoDetailFragment, inflater: LayoutInflater) :
|
||||
_container_content.visibility = VISIBLE
|
||||
_layoutPlayerContainer.setPadding(0, 0, 0, TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 6.0f, Resources.getSystem().displayMetrics).toInt());
|
||||
|
||||
val lp = _container_content.layoutParams as LayoutParams;
|
||||
val lp = _container_content.layoutParams as ConstraintLayout.LayoutParams;
|
||||
lp.topMargin = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, -18.0f, Resources.getSystem().displayMetrics).toInt();
|
||||
_container_content.layoutParams = lp;
|
||||
|
||||
@@ -3031,7 +3031,7 @@ class VideoDetailView(fragment: VideoDetailFragment, inflater: LayoutInflater) :
|
||||
_container_content.visibility = VISIBLE
|
||||
}
|
||||
}
|
||||
fun getPictureInPictureParams(isPlaying: Boolean) : PictureInPictureParams {
|
||||
fun getPictureInPictureParams() : PictureInPictureParams {
|
||||
var videoSourceWidth = _player.exoPlayer?.player?.videoSize?.width ?: 0;
|
||||
var videoSourceHeight = _player.exoPlayer?.player?.videoSize?.height ?: 0;
|
||||
|
||||
|
||||
Submodule app/src/stable/assets/sources/apple-podcast deleted from f79c7141bc
Reference in New Issue
Block a user