mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix warnings in InMemoryAppPreferencesStore (#4523)
This commit is contained in:
+2
-4
@@ -18,7 +18,6 @@ class InMemoryAppPreferencesStore(
|
|||||||
hideImagesAndVideos: Boolean = false,
|
hideImagesAndVideos: Boolean = false,
|
||||||
customElementCallBaseUrl: String? = null,
|
customElementCallBaseUrl: String? = null,
|
||||||
theme: String? = null,
|
theme: String? = null,
|
||||||
simplifiedSlidingSyncEnabled: Boolean = false,
|
|
||||||
logLevel: LogLevel = LogLevel.INFO,
|
logLevel: LogLevel = LogLevel.INFO,
|
||||||
traceLockPacks: Set<TraceLogPack> = emptySet(),
|
traceLockPacks: Set<TraceLogPack> = emptySet(),
|
||||||
) : AppPreferencesStore {
|
) : AppPreferencesStore {
|
||||||
@@ -26,7 +25,6 @@ class InMemoryAppPreferencesStore(
|
|||||||
private val hideImagesAndVideos = MutableStateFlow(hideImagesAndVideos)
|
private val hideImagesAndVideos = MutableStateFlow(hideImagesAndVideos)
|
||||||
private val customElementCallBaseUrl = MutableStateFlow(customElementCallBaseUrl)
|
private val customElementCallBaseUrl = MutableStateFlow(customElementCallBaseUrl)
|
||||||
private val theme = MutableStateFlow(theme)
|
private val theme = MutableStateFlow(theme)
|
||||||
private val simplifiedSlidingSyncEnabled = MutableStateFlow(simplifiedSlidingSyncEnabled)
|
|
||||||
private val logLevel = MutableStateFlow(logLevel)
|
private val logLevel = MutableStateFlow(logLevel)
|
||||||
private val tracingLogPacks = MutableStateFlow(traceLockPacks)
|
private val tracingLogPacks = MutableStateFlow(traceLockPacks)
|
||||||
|
|
||||||
@@ -70,8 +68,8 @@ class InMemoryAppPreferencesStore(
|
|||||||
return logLevel
|
return logLevel
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun setTracingLogPacks(logPacks: Set<TraceLogPack>) {
|
override suspend fun setTracingLogPacks(targets: Set<TraceLogPack>) {
|
||||||
tracingLogPacks.value = logPacks
|
tracingLogPacks.value = targets
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getTracingLogPacksFlow(): Flow<Set<TraceLogPack>> {
|
override fun getTracingLogPacksFlow(): Flow<Set<TraceLogPack>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user