refactor(messages): add back button

This commit is contained in:
andrekir 2023-09-30 06:40:05 -03:00
parent c26b6dd7ac
commit fdb94fb547
2 changed files with 8 additions and 4 deletions

View file

@ -242,6 +242,10 @@ class MessagesFragment : Fragment(), Logging {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.toolbar.setNavigationOnClickListener {
parentFragmentManager.popBackStack()
}
setFragmentResultListener("requestKey") { _, bundle->
// get the result from bundle
contactKey = bundle.getString("contactKey").toString()