Fix warnings in InMemoryAppPreferencesStore (#4523)
This commit is contained in:
parent
670af86e8b
commit
edd09ef7bb
1 changed files with 2 additions and 4 deletions
|
|
@ -18,7 +18,6 @@ class InMemoryAppPreferencesStore(
|
|||
hideImagesAndVideos: Boolean = false,
|
||||
customElementCallBaseUrl: String? = null,
|
||||
theme: String? = null,
|
||||
simplifiedSlidingSyncEnabled: Boolean = false,
|
||||
logLevel: LogLevel = LogLevel.INFO,
|
||||
traceLockPacks: Set<TraceLogPack> = emptySet(),
|
||||
) : AppPreferencesStore {
|
||||
|
|
@ -26,7 +25,6 @@ class InMemoryAppPreferencesStore(
|
|||
private val hideImagesAndVideos = MutableStateFlow(hideImagesAndVideos)
|
||||
private val customElementCallBaseUrl = MutableStateFlow(customElementCallBaseUrl)
|
||||
private val theme = MutableStateFlow(theme)
|
||||
private val simplifiedSlidingSyncEnabled = MutableStateFlow(simplifiedSlidingSyncEnabled)
|
||||
private val logLevel = MutableStateFlow(logLevel)
|
||||
private val tracingLogPacks = MutableStateFlow(traceLockPacks)
|
||||
|
||||
|
|
@ -70,8 +68,8 @@ class InMemoryAppPreferencesStore(
|
|||
return logLevel
|
||||
}
|
||||
|
||||
override suspend fun setTracingLogPacks(logPacks: Set<TraceLogPack>) {
|
||||
tracingLogPacks.value = logPacks
|
||||
override suspend fun setTracingLogPacks(targets: Set<TraceLogPack>) {
|
||||
tracingLogPacks.value = targets
|
||||
}
|
||||
|
||||
override fun getTracingLogPacksFlow(): Flow<Set<TraceLogPack>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue