refactor: cleaned code

This commit is contained in:
2026-06-28 16:52:38 +03:00
parent 235afe61e7
commit c593e06e4c
2 changed files with 6 additions and 9 deletions
@@ -26,6 +26,11 @@ class MessagesReceiver : WearableListenerService() {
val json = String(event.data, Charsets.UTF_8)
val cards = Json.decodeFromString<List<CardInfo>>(json)
val oldCards = db.getCards()
if (cards == oldCards) {
return
}
db.clearDatabase()
db.addCards(cards)