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

Commit 43154100 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

refactor: apply Sayantan's suggestion

parent 0df40e8a
Loading
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -124,7 +124,12 @@ class SystemAppsUpdatesRepository @Inject constructor(

        if (systemAppProject.dependsOnAndroidVersion) {
            //expects something like: vx.y.z-T for android T
            releases.removeIf { !it.tagName.endsWith("-$androidVersionCode")}
            releases.removeIf {
                !it.tagName.endsWith(
                    suffix = "-$androidVersionCode",
                    ignoreCase = true
                )
            }
        }

        val sortedReleases = releases.sortedByDescending {