Package com.example.lottery.util
Class OrganizerNavigationHelper
java.lang.Object
com.example.lottery.util.OrganizerNavigationHelper
Centralised helper that wires up the organizer bottom-navigation bar
(
layout_bottom_nav_organizer.xml) in every organizer screen.
The centre FAB (Create Event) is handled separately from the four
regular tabs. Admin-role extras are read from AdminRoleManager
automatically.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTabs in the organizer bottom-navigation bar. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisableNavigation(android.app.Activity activity) Replaces all tab and FAB click listeners with no-ops.static voidsetup(android.app.Activity activity, OrganizerNavigationHelper.OrganizerTab currentTab, String userId) Highlights the active tab and wires every tab's click listener, including the centre Create-Event FAB.static voidsetup(android.app.Activity activity, OrganizerNavigationHelper.OrganizerTab currentTab, String userId, boolean finishOnNavigate) Highlights the active tab and wires every tab's click listener, including the centre Create-Event FAB.
-
Method Details