Merge pull request #3034 from Bnyro/master

Button to quit the audio mode
This commit is contained in:
Bnyro 2023-02-12 12:40:14 +01:00 committed by GitHub
commit aa516ba261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,11 @@ class AudioPlayerFragment : BaseFragment(), AudioPlayerOptions {
).show(childFragmentManager, null)
}
binding.close.setOnClickListener {
BackgroundHelper.stopBackgroundPlay(requireContext())
findNavController().popBackStack()
}
val listener = AudioPlayerThumbnailListener(requireContext(), this)
binding.thumbnail.setOnTouchListener(listener)

View File

@ -192,6 +192,11 @@
style="@style/AudioPlayerButton"
android:src="@drawable/ic_share" />
<ImageView
android:id="@+id/close"
style="@style/AudioPlayerButton"
android:src="@drawable/ic_close" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>