Skip to content

Commit 71288ec

Browse files
authored
Merge pull request libre-tube#7175 from Bnyro/master
fix: wrong initial state of hide watched videos from feed filter
2 parents 253585b + 3301d11 commit 71288ec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import android.content.pm.ActivityInfo
1111
import android.content.res.Configuration
1212
import android.graphics.Bitmap
1313
import android.media.session.PlaybackState
14-
import android.os.Build
1514
import android.os.Bundle
1615
import android.os.Handler
1716
import android.os.Looper
@@ -758,7 +757,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
758757
val currentPosition =
759758
playerController.currentPosition.toFloat() / 1000
760759
openScreenshotFile.launch("${streams.title}-${currentPosition}.png")
761-
}, Handler(Looper.getMainLooper()))
760+
}, handler)
762761
}
763762

764763
binding.playerChannel.setOnClickListener {

app/src/main/java/com/github/libretube/ui/sheets/FilterSortBottomSheet.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class FilterSortBottomSheet : ExpandedBottomSheet(R.layout.filter_sort_sheet) {
6565
binding.filterShorts.isChecked = ContentFilter.SHORTS.isEnabled
6666
binding.filterLivestreams.isChecked = ContentFilter.LIVESTREAMS.isEnabled
6767
binding.hideWatchedCheckbox.isChecked = hideWatched
68+
binding.showUpcomingCheckbox.isChecked = showUpcoming
6869
}
6970

7071
private fun observeSortChanges() {

0 commit comments

Comments
 (0)