From 221a696949a8b28d6cea1cad180d988376fcd96d Mon Sep 17 00:00:00 2001 From: David Walsh Date: Fri, 31 Jan 2020 12:04:54 +0100 Subject: [PATCH] [fenix] For https://github.com/mozilla-mobile/fenix/issues/8016 - Prevent duplicate domains from displaying inthe collection description on the home screen --- .../java/org/mozilla/fenix/components/TabCollectionStorage.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/TabCollectionStorage.kt b/app/src/main/java/org/mozilla/fenix/components/TabCollectionStorage.kt index 44bbba6724..1fce71efb7 100644 --- a/app/src/main/java/org/mozilla/fenix/components/TabCollectionStorage.kt +++ b/app/src/main/java/org/mozilla/fenix/components/TabCollectionStorage.kt @@ -104,5 +104,7 @@ fun TabCollection.description(context: Context): String { } else { it } - }.joinToString(", ") + } + .distinct() + .joinToString(", ") }