fix: fixed error toasts showing

This commit is contained in:
2026-06-11 17:39:00 +03:00
parent 19a571ac06
commit 1d950a112a
3 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
@@ -186,7 +186,7 @@ fun AddCard(innerPadding: PaddingValues, getDbFun: () -> DbHelper) {
getDbFun().addCard(cardName, codeValue, codeType)
context.finish()
} else {
Toast.makeText(context, err, Toast.LENGTH_SHORT)
Toast.makeText(context, err, Toast.LENGTH_SHORT).show()git
}
}
) {
@@ -229,7 +229,7 @@ fun EditCard(cardInfo: CardInfo, innerPadding: PaddingValues, getDbFun: () -> Db
getDbFun().editCard(cardInfo.id, cardName, codeValue, codeType)
context.finish()
} else {
Toast.makeText(context, err, Toast.LENGTH_SHORT)
Toast.makeText(context, err, Toast.LENGTH_SHORT).show()
}
}
) {