forked from omni/OmniCards
fix: removed updating database message
This commit is contained in:
@@ -24,13 +24,11 @@ class MessagesReceiver : WearableListenerService() {
|
||||
|
||||
val cards = Json.decodeFromString<List<CardInfo>>(json)
|
||||
|
||||
Toast.makeText(this, "Updating database...", Toast.LENGTH_SHORT).show()
|
||||
|
||||
db.clearDatabase()
|
||||
db.addCards(cards)
|
||||
|
||||
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 {
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||
|
||||
Reference in New Issue
Block a user