功能联调

This commit is contained in:
马增飞
2025-08-07 18:58:17 +08:00
parent 4d91b9d338
commit e7e062ebcb
5 changed files with 89 additions and 46 deletions
@@ -65,6 +65,8 @@ class ShelfActivity : BaseActivity() {
shelfModel?.let {
binding.tvShelfName.text = it.shelfName
binding.tvFoodName.text = if (it.foodName.isNullOrBlank()) "-" else it.foodName
realWeight = it.foodWeight ?: 0
binding.tvFoodWeight.text = "${realWeight}"
}
initRecyclerView()
@@ -97,7 +99,6 @@ class ShelfActivity : BaseActivity() {
setResult(RESULT_OK, intent)
finish()
}
binding.tvFoodWeight.text = "${realWeight}"
binding.root.setOnClickListener { v ->
KeyboardUtil.hideKeyboard(v.context, v)
}