'moving from fragment to bottomNavitem, Onclick of that bottomNavitem, it opens that fragment again i need to open start fragment again,without delay?
i tried to open bottomNavitem from fragment with this code on ,it opens bottomnavitem ,on comming back same bottomnavitem it open same fragement while i need to open starting fragment ,using popbackstack removes but it shoes delay bad ui
AppPreference.lastSelectedCoinName = it.replace("/", "")
// findNavController().popBackStack()
(activity as HomeActivity).changeBottomNavItem(2)
Solution 1:[1]
Are you using Android Navigation i think it would solve your issue
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Nadeem |