Skip to content

Commit 287db90

Browse files
Sort using last played by default
1 parent 6f9af26 commit 287db90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/schabi/newpipe/local/history/HistoryViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class HistoryViewModel(
2121
) : AndroidViewModel(application) {
2222
private val historyDao = NewPipeDatabase.getInstance(getApplication()).streamHistoryDAO()
2323

24-
val sortKey = savedStateHandle.getStateFlow(ORDER_KEY, SortKey.MOST_PLAYED)
24+
val sortKey = savedStateHandle.getStateFlow(ORDER_KEY, SortKey.LAST_PLAYED)
2525
val historyItems = sortKey
2626
.flatMapLatest {
2727
Pager(PagingConfig(pageSize = 20)) {

0 commit comments

Comments
 (0)