Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
- (activity as? AppCompatActivity)?.setSupportActionBar(toolbar)
- arguments?.getLong(ARG_REGION)?.let { idRegion ->
- viewModel.getQueryIdRegion(idRegion)
- }
- viewModel.nameSearchRegion.observe(this, Observer { region ->
- (activity as AppCompatActivity).supportActionBar?.apply {
- title = region.nameRegion
- //setDisplayHomeAsUpEnabled(true)
- //setDisplayShowHomeEnabled(true)
- viewModel.clearSearch()
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement