Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3556

Admincentral-scoped event handlers get removed by app controller before AppLifecycleEvent#STOPPED is fired

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.3.11, 5.4.3
    • 5.3.10, 5.4.1
    • None
    • None

    Description

      Steps to reproduce:

      • register event in app/field
                admincentralEventBus.addHandler(AppLifecycleEvent.class, new AppLifecycleEventHandler() {
                    @Override
                    public void onAppFocused(final AppLifecycleEvent event) {
                        System.out.println("onFocus");
                    }
        
                    @Override
                    public void onAppStopped(final AppLifecycleEvent event) {
                        System.out.println("onStop");
                    }
        
                    @Override
                    public void onAppStarted(final AppLifecycleEvent event) {
                        System.out.println("onStart");
                    }
                });
        
      • fire event
      • nothing is printed in the console

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                jsimak Jaroslav Simak
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - 0.5d
                      0.5d
                      Remaining:
                      Time Spent - 3.5h Remaining Estimate - 0.5h
                      0.5h
                      Logged:
                      Time Spent - 3.5h Remaining Estimate - 0.5h
                      3.5h