forked from omni/OmniCards
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)
|
||||
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()
|
||||
}
|
||||
}
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user