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

Commit d709b46b authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

issue_5413_2: Implement getUpdatesOSS in UpdatesViewModel

parent 9de5fed9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -52,6 +52,16 @@ class UpdatesViewModel @Inject constructor(
        }
    }

    /*
     * Get updates only from cleanapk
     * Issue: https://gitlab.e.foundation/e/backlog/-/issues/5413 [2]
     */
    fun getUpdatesOSS() {
        viewModelScope.launch {
            updatesList.postValue(updatesManagerRepository.getUpdatesOSS())
        }
    }

    suspend fun checkWorkInfoListHasAnyUpdatableWork(workInfoList: List<WorkInfo>): Boolean {
        workInfoList.forEach { workInfo ->
            if (listOf(