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

Commit 2dd8e2b4 authored by Hasib Prince's avatar Hasib Prince
Browse files

refactor: UpdatesDao

parent df8251e7
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ package foundation.e.apps.api.fused
import foundation.e.apps.api.fused.data.FusedApp

object UpdatesDao {
    private var _appsAwaitingForUpdate: MutableList<FusedApp> = mutableListOf()
    var appsAwaitingForUpdate: List<FusedApp> = _appsAwaitingForUpdate
    private val _appsAwaitingForUpdate: MutableList<FusedApp> = mutableListOf()
    val appsAwaitingForUpdate: List<FusedApp> = _appsAwaitingForUpdate

    fun addItemsForUpdate(appsNeedUpdate: List<FusedApp>) = _appsAwaitingForUpdate.addAll(appsNeedUpdate)