fix: fixed error toasts showing
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -186,7 +186,7 @@ fun AddCard(innerPadding: PaddingValues, getDbFun: () -> DbHelper) {
|
|||||||
getDbFun().addCard(cardName, codeValue, codeType)
|
getDbFun().addCard(cardName, codeValue, codeType)
|
||||||
context.finish()
|
context.finish()
|
||||||
} else {
|
} 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)
|
getDbFun().editCard(cardInfo.id, cardName, codeValue, codeType)
|
||||||
context.finish()
|
context.finish()
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(context, err, Toast.LENGTH_SHORT)
|
Toast.makeText(context, err, Toast.LENGTH_SHORT).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user