Fix code style

pull/1509/head
Felix Wiemuth 3 years ago
parent e65357bc14
commit ee0663e5e5

@ -155,10 +155,14 @@ open class Preferences(private val storage: Storage) {
} else {
try {
val activeById = Json.decodeFromString(
MapSerializer(Long.serializer(), NotificationTray.NotificationData.serializer()),
MapSerializer(
Long.serializer(),
NotificationTray.NotificationData.serializer()
),
serialized
)
val activeByHabit = activeById.mapNotNull { (id, v) -> habitList.getById(id)?.let { it to v } }
val activeByHabit =
activeById.mapNotNull { (id, v) -> habitList.getById(id)?.let { it to v } }
activeByHabit.toMap(HashMap())
} catch (e: IllegalArgumentException) {
HashMap()

Loading…
Cancel
Save