I’m using the single activity multi fragments with navigation component.how do i hide the bottom navigation bar for some of the fragments? i tried the following: controlling the visibility of the bottomnavigation bar through databinding.(buggy) toggling the bottomnavigation visibility before opening the fragment and on the backstack ( buggy) making 2 host fragments: 1 full screen, 1 bound by the
Tag: android-architecture-components
Accessing BroadCastReceiver in Viewmodel
I am struggling in choosing the right way to pass data from broadcastReceiver to ViewModel and from there I pass data to my Repository and update LiveData. I use FCM push notifications and have local broadCastReceiver which uses ActivityLifecycle. I found that it is bad practice to access ViewModel from BroadcastReceiver, but not sure why? If I manage lifecycle of