mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix: wrong initial state of hide watched videos from feed filter
This commit is contained in:
parent
253585b74d
commit
3301d11a62
@ -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 {
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user