功能联调
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user