File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/src/main/java/org/schabi/newpipe/database/history/dao Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ package org.schabi.newpipe.database.history.dao
99import org.schabi.newpipe.database.BasicDAO
1010
1111interface HistoryDAO <T > : BasicDAO <T > {
12- val latestEntry: T
12+ val latestEntry: T ?
1313}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import org.schabi.newpipe.database.history.model.SearchHistoryEntry
1515interface SearchHistoryDAO : HistoryDAO <SearchHistoryEntry > {
1616
1717 @get:Query(" SELECT * FROM search_history WHERE id = (SELECT MAX(id) FROM search_history)" )
18- override val latestEntry: SearchHistoryEntry
18+ override val latestEntry: SearchHistoryEntry ?
1919
2020 @Query(" DELETE FROM search_history" )
2121 override fun deleteAll (): Int
You can’t perform that action at this time.
0 commit comments