From 444934759307e8b9cfe6da8f29a806be41cc88f9 Mon Sep 17 00:00:00 2001 From: reduplicated <110570621+reduplicated@users.noreply.github.com> Date: Wed, 15 Mar 2023 22:22:19 +0100 Subject: [PATCH 1/2] bump --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 0bd56fe7..fa1b277a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -47,8 +47,8 @@ android { minSdk = 21 targetSdk = 33 - versionCode = 57 - versionName = "4.0.0" + versionCode = 59 + versionName = "4.0.1" resValue("string", "app_version", "${defaultConfig.versionName}${versionNameSuffix ?: ""}") From bdb45b69d354226d8dfcac2fbe77986f820f3100 Mon Sep 17 00:00:00 2001 From: reduplicated <110570621+reduplicated@users.noreply.github.com> Date: Tue, 11 Apr 2023 18:04:24 +0200 Subject: [PATCH 2/2] pip fixes --- .../ui/player/AbstractPlayerFragment.kt | 4 +- .../main/res/layout/player_custom_layout.xml | 1267 +++++++++-------- .../res/layout/player_custom_layout_tv.xml | 649 ++++----- 3 files changed, 968 insertions(+), 952 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt index 21047db3..52f0b760 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt @@ -184,7 +184,7 @@ abstract class AbstractPlayerFragment( isInPIPMode = isInPictureInPictureMode if (isInPictureInPictureMode) { // Hide the full-screen UI (controls, etc.) while in picture-in-picture mode. - player_holder?.alpha = 0f + piphide?.isVisible = false pipReceiver = object : BroadcastReceiver() { override fun onReceive( context: Context, @@ -212,7 +212,7 @@ abstract class AbstractPlayerFragment( updateIsPlaying(Pair(isPlayingValue, isPlayingValue)) } else { // Restore the full-screen UI. - player_holder?.alpha = 1f + piphide?.isVisible = true exitedPipMode() pipReceiver?.let { activity?.unregisterReceiver(it) diff --git a/app/src/main/res/layout/player_custom_layout.xml b/app/src/main/res/layout/player_custom_layout.xml index 683a1077..54f92d1f 100644 --- a/app/src/main/res/layout/player_custom_layout.xml +++ b/app/src/main/res/layout/player_custom_layout.xml @@ -8,17 +8,6 @@ android:screenOrientation="landscape" tools:orientation="vertical"> - - - - - - - - - - - - - - - + android:layout_height="match_parent" + android:background="@color/black_overlay" /> - + - - - - - - - - - - - - - - - - - - - - - - - - - - + android:gravity="center" + android:shadowColor="@android:color/black" + android:shadowRadius="10.0" + android:textColor="@android:color/white" + android:textSize="30sp" + tools:text="+100" /> + - - android:nextFocusRight="@id/exo_ffwd" - - android:nextFocusUp="@id/player_go_back" - android:nextFocusDown="@id/player_lock" - - android:src="@drawable/netflix_pause" - app:tint="@color/white" - tools:ignore="ContentDescription" /> - + + android:layout_height="match_parent"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + + + + + diff --git a/app/src/main/res/layout/player_custom_layout_tv.xml b/app/src/main/res/layout/player_custom_layout_tv.xml index 405b606f..62b359b6 100644 --- a/app/src/main/res/layout/player_custom_layout_tv.xml +++ b/app/src/main/res/layout/player_custom_layout_tv.xml @@ -9,8 +9,9 @@ android:tag="television" tools:orientation="vertical"> + @@ -19,359 +20,365 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/player_gradient_tv" /> - - + + + + - - - + + + + + + + + + + + - ---> - - - - - - - - - - - - - + + android:layout_gravity="center" - + android:clickable="false" + android:focusable="false" + android:focusableInTouchMode="false" - - - - - - - - - - - - - - - - - - - - - - - - - + android:indeterminate="true" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + tools:visibility="visible" /> + android:layout_gravity="bottom" + android:layout_marginBottom="20dp" + android:gravity="center" + android:orientation="horizontal" + android:paddingTop="4dp" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent"> - - - - + + + + + + + - - - + android:layout_height="0dp" + android:tintMode="src_in" + app:tint="?attr/colorPrimaryDark" + tools:ignore="ContentDescription" /> + - + android:layout_marginStart="64dp" + android:layout_marginEnd="64dp" + android:layout_marginBottom="10dp" + android:gravity="center_vertical" + android:orientation="vertical" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> - + + android:src="@drawable/netflix_pause" + app:tint="@color/player_button_tv" + tools:ignore="ContentDescription" /> - + + - android:visibility="gone" - app:icon="@drawable/ic_outline_subtitles_24" - tools:visibility="visible" /> + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +