Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isEditMode) {
- rootView.tvInnerTitle.text = "Edit"
- var product = (arguments?.getSerializable(MainActivity.KEY_PRODUCT) as Product)
- etProductTitle.setText(product.name)
- etProductPrice.setText(product.estPrice.toString())
- etProductDescription.setText(product.description)
- spnProductCategory.setSelection(product.category.ordinal)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement