Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d48ccaa6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "LightBarControllerImpl.Factory: call start to keep legacy behavior" into main

parents 56178c95 a5ce2c28
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -527,12 +527,16 @@ public class LightBarControllerImpl implements
        @Override
        public LightBarController create(@NonNull Context context) {
            // TODO: b/380394368 - Make sure correct per display instances are used.
            return mFactory.create(
            LightBarControllerImpl lightBarController = mFactory.create(
                    context.getDisplayId(),
                    mApplicationScope,
                    mDarkIconDispatcherStore.getDefaultDisplay(),
                    mStatusBarModeRepositoryStore.getDefaultDisplay()
            );
            // Calling start() manually to keep the legacy behavior. Before, LightBarControllerImpl
            // was doing work in the constructor, which moved to start().
            lightBarController.start();
            return lightBarController;
        }
    }
}