refs #6227 feat:modify options
This commit is contained in:
parent
c4ed1168ea
commit
3b245cb901
|
@ -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<ItemInventaryVO> = ArrayList()
|
||||
private var listInvetoryAux: ArrayList<ItemInventaryVO> = 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 =
|
||||
|
|
Loading…
Reference in New Issue