Closed qnga closed 8 months ago
BottomNavigator.onCreate
is just a public wrapper I can't find specific tests for.BottomNavigator
would look quite weird, wouldn'it? Rather, I would have thought of a different Activity. For testing purpose it might be fine though.
Hello!
I've added the ability of properly using a
BottomNavigator
inside aFragment
instead of anActivity
. It implies to execute transactions with theFragment
's childFragmentManager
, tie the execution of commands to its lifecycle and scope theBottomNavigator
instance to itsViewModelStore
.For the sake of simplicity and backward compatibility, I've overloaded a few methods with alternatives that take a
Fragment
in argument.This PR would fix #13.