mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2853 All content | Enhancement | Menu, cache, empty states (#1613)
This commit is contained in:
parent
97fa5232b9
commit
8878d0760b
18 changed files with 287 additions and 110 deletions
|
@ -42,4 +42,7 @@ interface UserSettingsCache {
|
|||
suspend fun getWidgetSession() : WidgetSession
|
||||
suspend fun saveWidgetSession(session: WidgetSession)
|
||||
suspend fun clear()
|
||||
|
||||
suspend fun getAllContentSort(space: SpaceId): Id
|
||||
suspend fun setAllContentSort(space: SpaceId, sort: Id)
|
||||
}
|
|
@ -105,4 +105,12 @@ class UserSettingsDataRepository(private val cache: UserSettingsCache) : UserSet
|
|||
order = order
|
||||
)
|
||||
}
|
||||
|
||||
override suspend fun getAllContentSort(space: SpaceId): Id {
|
||||
return cache.getAllContentSort(space)
|
||||
}
|
||||
|
||||
override suspend fun setAllContentSort(space: SpaceId, sort: Id) {
|
||||
cache.setAllContentSort(space, sort)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue