feat: added cards removing

This commit is contained in:
2026-06-09 14:45:56 +03:00
parent 6ef35b5fa2
commit 635b1f3bac
2 changed files with 31 additions and 0 deletions
@@ -78,4 +78,12 @@ class DbHelper(val context: Context, val factory: SQLiteDatabase.CursorFactory?)
return cardInfo
}
fun removeCard(id: Int) {
val db = this.writableDatabase
db.delete("cards", "id = ?", arrayOf(id.toString()))
db.close()
}
}