Pass data back to previous fragment using Android Navigation

前端 未结 4 589
天命终不由人
天命终不由人 2021-01-07 21:54

I\'ve started using Android Architecture Components (Navigation and Safe Args, View Models) along with Koin library.

Currently, I\'ve got a problem with passing argu

4条回答
  •  温柔的废话
    2021-01-07 22:38

    You can try this solution

    
    
        
    
        
    
    
    
    
    
        
    
        
    
    
    
    

    and navigation fragment

    NavHostFragment.findNavController(this).navigate(BFragmentDirections.returnToAWithArguments(text))
    

    ianhanniballake`s comment has helped me solve a similar problem

提交回复
热议问题