Class OrganizerNavigationHelper

java.lang.Object
com.example.lottery.util.OrganizerNavigationHelper

public final class OrganizerNavigationHelper extends Object
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.

  • Method Details

    • setup

      public static void setup(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.
      Parameters:
      activity - the hosting Activity
      currentTab - which tab this screen represents
      userId - the organizer's userId
    • setup

      public static void setup(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.
      Parameters:
      activity - the hosting Activity
      currentTab - which tab this screen represents
      userId - the organizer's userId
      finishOnNavigate - if true, calls finish() after starting the target Activity (use for detail screens)
    • disableNavigation

      public static void disableNavigation(android.app.Activity activity)
      Replaces all tab and FAB click listeners with no-ops. Call this after setup(android.app.Activity, com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab, java.lang.String) when the user must complete their profile before navigating away.