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

Commit 37edcb8b authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

Merge branch '7356-pwa_label_in_lists' into 'main'

Issue 7356: PWA label in search list

See merge request !378
parents 9e4bf86f 83813678
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -284,10 +284,11 @@ class FusedApiImpl @Inject constructor(
        val result = handleNetworkResult {
            val apps =
                cleanApkPWARepository.getSearchResult(query).body()?.apps
            apps?.apply {
                if (this.isNotEmpty()) {
                    pwaApps.addAll(this)
                }
            apps?.forEach {
                it.updateStatus()
                it.updateType()
                it.updateSource()
                pwaApps.add(it)
            }
        }

@@ -1008,8 +1009,7 @@ class FusedApiImpl @Inject constructor(
        response?.forEach {
            it.updateStatus()
            it.updateType()
            it.source =
                if (source.contentEquals(CleanApkRetrofit.APP_SOURCE_FOSS)) "Open Source" else "PWA"
            it.updateSource()
            list.add(it)
        }
        return list