From 488c90e72cdfcad4eb1be98d4f0e79a8a06b6942 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 7 Nov 2023 16:39:48 +0100 Subject: [PATCH] fix: remove redundant button to close audio player --- .../github/libretube/ui/fragments/AudioPlayerFragment.kt | 6 ------ app/src/main/res/layout/fragment_audio_player.xml | 8 -------- 2 files changed, 14 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/AudioPlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/AudioPlayerFragment.kt index 470214639..6f3c03274 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/AudioPlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/AudioPlayerFragment.kt @@ -172,12 +172,6 @@ class AudioPlayerFragment : Fragment(), AudioPlayerOptions { .show(childFragmentManager) } - binding.close.setOnClickListener { - activity?.unbindService(connection) - BackgroundHelper.stopBackgroundPlay(requireContext()) - killFragment() - } - binding.miniPlayerClose.setOnClickListener { activity?.unbindService(connection) BackgroundHelper.stopBackgroundPlay(requireContext()) diff --git a/app/src/main/res/layout/fragment_audio_player.xml b/app/src/main/res/layout/fragment_audio_player.xml index 7e550131f..6b3aa1bd0 100644 --- a/app/src/main/res/layout/fragment_audio_player.xml +++ b/app/src/main/res/layout/fragment_audio_player.xml @@ -64,14 +64,6 @@ android:layout_marginHorizontal="6dp" android:src="@drawable/ic_video" /> - -