From df69a6dc7f651a22f1f704d159e76233da263ad1 Mon Sep 17 00:00:00 2001 From: Daosheng Mu Date: Mon, 22 Jul 2019 12:39:58 -0700 Subject: [PATCH] Fixed storage.getVisited() is always true warning. --- .../common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt b/app/src/common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt index 78db218ec..2f62c2bda 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/HistoryStore.kt @@ -51,7 +51,7 @@ class HistoryStore constructor(val context: Context) { } fun isInHistory(aURL: String): CompletableFuture = GlobalScope.future { - storage.getVisited(listOf(aURL)) != null + storage.getVisited(listOf(aURL)).size != 0 } private fun notifyListeners() {