We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb82dc commit 5c9ac91Copy full SHA for 5c9ac91
1 file changed
app/src/main/java/org/schabi/newpipe/database/history/dao/StreamHistoryDAO.kt
@@ -35,7 +35,7 @@ abstract class StreamHistoryDAO : BasicDAO<StreamHistoryEntity> {
35
abstract val historySortedById: Flowable<MutableList<StreamHistoryEntry>>
36
37
@Query("SELECT * FROM stream_history WHERE stream_id = :streamId ORDER BY access_date DESC LIMIT 1")
38
- abstract fun getLatestEntry(streamId: Long): StreamHistoryEntity
+ abstract fun getLatestEntry(streamId: Long): StreamHistoryEntity?
39
40
@Query("DELETE FROM stream_history WHERE stream_id = :streamId")
41
abstract fun deleteStreamHistory(streamId: Long): Int
0 commit comments