Fixes back press being propagated twice to active children of NavigationDelegate.
NavigationDelegate is a LifecycleAwareComponent. All LifecycleAwareComponents forward back presses to active children (active means lifecycle state >= Shown). NavigationDelegate was then calling back press on its currentNavigable, which is also a lifecycle aware child. The result is that currentNavigable would receive back press twice: once from LifecycleAwareComponent code and once from NavigationDelegate code.
Fixes back press being propagated twice to active children of NavigationDelegate.
NavigationDelegate
is aLifecycleAwareComponent
. AllLifecycleAwareComponent
s forward back presses to active children (active means lifecycle state >= Shown).NavigationDelegate
was then calling back press on itscurrentNavigable
, which is also a lifecycle aware child. The result is thatcurrentNavigable
would receive back press twice: once fromLifecycleAwareComponent
code and once fromNavigationDelegate
code.