Loading app/src/main/java/foundation/e/apps/data/application/home/HomeApiImpl.kt +5 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,10 @@ class HomeApiImpl @Inject constructor( Source.PWA -> handleNetworkResult { handleCleanApkHomes(priorList, SearchApi.APP_TYPE_PWA) } Source.GITLAB -> { ResultSupreme.Error(message = "Gitlab source not allowed") } } setHomeErrorMessage(result.getResultStatus(), source) Loading Loading @@ -223,6 +227,7 @@ class HomeApiImpl @Inject constructor( if (apiStatus != ResultStatus.OK) { apiStatus.message = when (source) { Source.GPLAY -> ("GPlay home loading error\n" + apiStatus.message).trim() Source.GITLAB -> ("Gitlab home not allowed\n" + apiStatus.message).trim() Source.OPEN -> ("Open Source home loading error\n" + apiStatus.message).trim() Source.PWA -> ("PWA home loading error\n" + apiStatus.message).trim() } Loading app/src/main/java/foundation/e/apps/data/enums/Source.kt +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package foundation.e.apps.data.enums enum class Source { GPLAY, GITLAB, OPEN, PWA; Loading @@ -27,6 +28,7 @@ enum class Source { return when (source) { "Open Source" -> OPEN "PWA" -> PWA "GITLAB" -> GITLAB else -> GPLAY } } Loading Loading
app/src/main/java/foundation/e/apps/data/application/home/HomeApiImpl.kt +5 −0 Original line number Diff line number Diff line Loading @@ -120,6 +120,10 @@ class HomeApiImpl @Inject constructor( Source.PWA -> handleNetworkResult { handleCleanApkHomes(priorList, SearchApi.APP_TYPE_PWA) } Source.GITLAB -> { ResultSupreme.Error(message = "Gitlab source not allowed") } } setHomeErrorMessage(result.getResultStatus(), source) Loading Loading @@ -223,6 +227,7 @@ class HomeApiImpl @Inject constructor( if (apiStatus != ResultStatus.OK) { apiStatus.message = when (source) { Source.GPLAY -> ("GPlay home loading error\n" + apiStatus.message).trim() Source.GITLAB -> ("Gitlab home not allowed\n" + apiStatus.message).trim() Source.OPEN -> ("Open Source home loading error\n" + apiStatus.message).trim() Source.PWA -> ("PWA home loading error\n" + apiStatus.message).trim() } Loading
app/src/main/java/foundation/e/apps/data/enums/Source.kt +2 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package foundation.e.apps.data.enums enum class Source { GPLAY, GITLAB, OPEN, PWA; Loading @@ -27,6 +28,7 @@ enum class Source { return when (source) { "Open Source" -> OPEN "PWA" -> PWA "GITLAB" -> GITLAB else -> GPLAY } } Loading