feat: added cards removing
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user