fix: removed updating database message

This commit is contained in:
2026-06-10 11:50:47 +03:00
parent a5e25d3c19
commit ea4011e2ff
@@ -24,13 +24,11 @@ class MessagesReceiver : WearableListenerService() {
val cards = Json.decodeFromString<List<CardInfo>>(json) val cards = Json.decodeFromString<List<CardInfo>>(json)
Toast.makeText(this, "Updating database...", Toast.LENGTH_SHORT).show()
db.clearDatabase() db.clearDatabase()
db.addCards(cards) db.addCards(cards)
Handler(Looper.getMainLooper()).post { Handler(Looper.getMainLooper()).post {
Toast.makeText(this, "Success!", Toast.LENGTH_SHORT).show() Toast.makeText(this, "Database updated!", Toast.LENGTH_SHORT).show()
val intent = Intent(this, MainActivity::class.java).apply { val intent = Intent(this, MainActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP