From a4f244491be94a97a0b17361e85e1d02759fde13 Mon Sep 17 00:00:00 2001 From: Gang Chen <11877522+cgang@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:11:32 +0800 Subject: [PATCH] Don't show controls on start. --- app/src/main/java/com/github/cgang/myiptv/PlaybackFragment.kt | 1 - app/src/main/res/layout/main_activity.xml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/cgang/myiptv/PlaybackFragment.kt b/app/src/main/java/com/github/cgang/myiptv/PlaybackFragment.kt index e0b7a72..834b2ca 100644 --- a/app/src/main/java/com/github/cgang/myiptv/PlaybackFragment.kt +++ b/app/src/main/java/com/github/cgang/myiptv/PlaybackFragment.kt @@ -170,7 +170,6 @@ open class PlaybackFragment : Log.i(TAG, "Trying to play last URL: $lastUrl") preparePlay(lastUrl, lastMimeType) } - (requireActivity() as MainActivity).hideControls() } @OptIn(markerClass = [UnstableApi::class]) diff --git a/app/src/main/res/layout/main_activity.xml b/app/src/main/res/layout/main_activity.xml index 8f4277e..55a3a34 100644 --- a/app/src/main/res/layout/main_activity.xml +++ b/app/src/main/res/layout/main_activity.xml @@ -21,7 +21,8 @@ android:layout_marginRight="15dp" android:layout_centerVertical="true" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:visibility="gone">