1
0
Fork 0
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:
Konstantin Ivanov 2024-10-01 21:02:58 +02:00 committed by GitHub
parent 97fa5232b9
commit 8878d0760b
Signed by: github
GPG key ID: B5690EEEBB952194
18 changed files with 287 additions and 110 deletions

View file

@ -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)
}

View file

@ -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)
}
}