Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 469033c

Browse files
daoshengmukeianhzo
authored andcommitted
Fixed storage.getVisited() is always true warning. (#1444)
1 parent 250a1fd commit 469033c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class HistoryStore constructor(val context: Context) {
5151
}
5252

5353
fun isInHistory(aURL: String): CompletableFuture<Boolean> = GlobalScope.future {
54-
storage.getVisited(listOf(aURL)) != null
54+
storage.getVisited(listOf(aURL)).size != 0
5555
}
5656

5757
private fun notifyListeners() {

0 commit comments

Comments
 (0)