fix: wrong initial state of hide watched videos from feed filter

This commit is contained in:
Bnyro 2025-03-08 11:30:38 +01:00
parent 253585b74d
commit 3301d11a62
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@ import android.content.pm.ActivityInfo
import android.content.res.Configuration import android.content.res.Configuration
import android.graphics.Bitmap import android.graphics.Bitmap
import android.media.session.PlaybackState import android.media.session.PlaybackState
import android.os.Build
import android.os.Bundle import android.os.Bundle
import android.os.Handler import android.os.Handler
import android.os.Looper import android.os.Looper
@ -758,7 +757,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
val currentPosition = val currentPosition =
playerController.currentPosition.toFloat() / 1000 playerController.currentPosition.toFloat() / 1000
openScreenshotFile.launch("${streams.title}-${currentPosition}.png") openScreenshotFile.launch("${streams.title}-${currentPosition}.png")
}, Handler(Looper.getMainLooper())) }, handler)
} }
binding.playerChannel.setOnClickListener { binding.playerChannel.setOnClickListener {

View File

@ -65,6 +65,7 @@ class FilterSortBottomSheet : ExpandedBottomSheet(R.layout.filter_sort_sheet) {
binding.filterShorts.isChecked = ContentFilter.SHORTS.isEnabled binding.filterShorts.isChecked = ContentFilter.SHORTS.isEnabled
binding.filterLivestreams.isChecked = ContentFilter.LIVESTREAMS.isEnabled binding.filterLivestreams.isChecked = ContentFilter.LIVESTREAMS.isEnabled
binding.hideWatchedCheckbox.isChecked = hideWatched binding.hideWatchedCheckbox.isChecked = hideWatched
binding.showUpcomingCheckbox.isChecked = showUpcoming
} }
private fun observeSortChanges() { private fun observeSortChanges() {