feat crashlytics refs #6810

This commit is contained in:
Sergio De la torre 2024-06-24 16:06:34 +02:00
parent 53b81e42be
commit 08c3d2d4fb
1 changed files with 2 additions and 1 deletions

View File

@ -103,9 +103,10 @@ class ParkingFragment(var menuOrigin: String) :
override fun onBarcodeRowClickListener(item: BarcodeVO) {
try {
val position = scanerList.indexOf(item)
println("parking $position")
if (position != -1) {
scanerList.removeAt(position)
adapter!!.notifyItemRemoved(position)
adapter!!.notifyItemRangeChanged(position,scanerList.size-position+1)
}
} catch (ex: Exception) {
ex.message.toString().toast(requireContext())