1
0
Fork 0

No Issue - Fixes the offset key to prevent endless history bug

master
Jeff Boek 2019-07-31 17:37:17 -07:00
parent 97f7d5ba87
commit a75c2f7cfb
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ class HistoryDataSource(
?: visit.url.getHostFromUrl()
?: visit.url
HistoryItem(offset + id, title, visit.url, visit.visitTime)
// We want IDs to start at 1, not 0 to be able to send the correct offset
// to the `historyProvider.getHistory` call.
HistoryItem(offset + id + 1, title, visit.url, visit.visitTime)
}
}
}