I want to change the icon of my BottomNavigationView after it got initialized. If I do it at onCreate it works fine. But I have to do it after getting an asynchronous response from the server.
val menuItem = bottom_navigation.menu.findItem(R.id.nav_item_4)
menuItem.icon = ContextCompat.getDrawable(this, R.drawable.ic_nav_message)