Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67b5a8c7 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Fix Kotlin warning (min -> minOrNull)

Test: atest PrivacyChipBuilderTest
Bug: 177438869
Change-Id: I567d59fa6398c665e17c9a713f170eff4600dd23
parent 23c36e41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ class PrivacyChipBuilder(private val context: Context, itemsList: List<PrivacyIt
        appsAndTypes = itemsList.groupBy({ it.application }, { it.privacyType })
                .toList()
                .sortedWith(compareBy({ -it.second.size }, // Sort by number of AppOps
                        { it.second.min() })) // Sort by "smallest" AppOpp (Location is largest)
                        { it.second.minOrNull() })) // Sort by "smallest" AppOpp (Location is largest)
        types = itemsList.map { it.privacyType }.distinct().sorted()
    }