diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt index 768e7d03..98d63b65 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/inventario/fragment/InventaryFragment.kt @@ -19,11 +19,12 @@ import es.verdnatura.presentation.common.OnInvetoryNichoClickListener import es.verdnatura.presentation.common.OnOptionsSelectedListener import es.verdnatura.presentation.common.OnPasillerosItemClickListener import es.verdnatura.presentation.common.ToolBarAdapterTooltip -import es.verdnatura.presentation.view.component.CustomDialog import es.verdnatura.presentation.view.component.CustomDialogInput +import es.verdnatura.presentation.view.component.CustomDialogTwoButtons import es.verdnatura.presentation.view.feature.calidad.model.BuyerVO import es.verdnatura.presentation.view.feature.inventario.adapter.InventoryAdapter import es.verdnatura.presentation.view.feature.inventario.model.ItemInventaryVO +import es.verdnatura.presentation.view.feature.pasillero.model.PasillerosItemVO import ir.mirrajabi.searchdialog.SimpleSearchDialogCompat import ir.mirrajabi.searchdialog.core.SearchResultListener import kotlinx.coroutines.launch @@ -36,7 +37,7 @@ class InventaryFragment : private lateinit var customDialogInput: CustomDialogInput private var listInvetory: ArrayList = ArrayList() private var listInvetoryAux: ArrayList = ArrayList() - private lateinit var customDialog: CustomDialog + private lateinit var customDialog: CustomDialogTwoButtons private var pasillerosItemClickListener: OnPasillerosItemClickListener? = null private var layoutManager: LinearLayoutManager? = null private var firstVisiblePosition = 0 @@ -97,7 +98,7 @@ class InventaryFragment : }).show() } customDialogInput = CustomDialogInput(requireContext()) - customDialog = CustomDialog(requireContext()) + customDialog = CustomDialogTwoButtons(requireContext()) binding.mainToolbar.toolbarTitle.text = getString(R.string.itemShelvingRadar) setToolBar() setEvents() @@ -220,12 +221,19 @@ class InventaryFragment : ) itemClicked = item customDialog.dismiss() - }.setKoButton(getString(R.string.cancel)) { + }.setOkButtonTwo(getString(R.string.titleUbicator)) { + customDialog.dismiss() + ma.onPasillerosItemClickListener( + PasillerosItemVO( + title = getString(R.string.titleUbicator), + ), entryPoint = "" + ) + }.setKoButton(getString(R.string.cancel)) { customDialog.dismiss() }.show() - } + }, onPasillerosItemClickListener = pasillerosItemClickListener!!) binding.locationRecyclerview.adapter = adapter layoutManager =