summaryrefslogtreecommitdiff
path: root/android/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/util.go')
-rw-r--r--android/util.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/util.go b/android/util.go
index e8d9301dd..39b9c7a78 100644
--- a/android/util.go
+++ b/android/util.go
@@ -213,10 +213,12 @@ func PrettyConcat(list []string, quote bool, lastSep string) string {
}
// ListSetDifference checks if the two lists contain the same elements. It returns
-// a boolean which is true if there is a difference, and then returns lists of elements
+// a boolean which is true if there is a difference, and then returns lists of unique elements
// that are in l1 but not l2, and l2 but not l1.
func ListSetDifference[T comparable](l1, l2 []T) (bool, []T, []T) {
listsDiffer := false
+ l1 = firstUnique(l1)
+ l2 = firstUnique(l2)
diff1 := []T{}
diff2 := []T{}
m1 := setFromList(l1)