feat: refs#6659 LocationScreen
This commit is contained in:
parent
097db01ac3
commit
889dcd1fe8
|
@ -35,7 +35,7 @@ class LocationAdapter(
|
|||
)
|
||||
}
|
||||
holder.binding.root.setOnLongClickListener {
|
||||
items[position].shelving.parking.sector.description.toast(
|
||||
items[position].shelving.parking!!.sector.description.toast(
|
||||
holder.binding.root.context,
|
||||
Toast.LENGTH_SHORT
|
||||
)
|
||||
|
|
|
@ -32,7 +32,6 @@ import androidx.compose.ui.platform.LocalContext
|
|||
import androidx.compose.ui.platform.LocalSoftwareKeyboardController
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
|
@ -209,7 +208,7 @@ private fun LocationScreenContent(
|
|||
|
||||
// Como estaba
|
||||
|
||||
@Composable
|
||||
/*@Composable
|
||||
fun LocationScreen(
|
||||
//viewModel: ViewModel?, // Falta ver de arreglar con koin o viewmodel → No necesario, en el Fragment observa
|
||||
items: List<LocationItem>,
|
||||
|
@ -324,7 +323,7 @@ fun LocationScreen(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
@OptIn(ExperimentalFoundationApi::class)
|
||||
@Composable
|
||||
fun LocationRow(
|
||||
|
@ -362,7 +361,7 @@ data class LocationItem(
|
|||
)
|
||||
|
||||
// Vista previa
|
||||
@Preview(showBackground = true)
|
||||
/*@Preview(showBackground = true)
|
||||
@Composable
|
||||
fun PreviewLocationScreen() {
|
||||
LocationScreen(
|
||||
|
@ -376,4 +375,4 @@ fun PreviewLocationScreen() {
|
|||
onLongClick = {},
|
||||
onClick = {})
|
||||
|
||||
}
|
||||
}*/
|
||||
|
|
|
@ -16,7 +16,7 @@ data class ItemShelvings(
|
|||
}
|
||||
|
||||
data class Shelving(
|
||||
val code: String, val priority: Int, val parking: Parking
|
||||
val code: String, val priority: Int, val parking: Parking?
|
||||
)
|
||||
|
||||
data class Parking(
|
||||
|
|
Loading…
Reference in New Issue