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

Commit fb0ef56e authored by Josh Yang's avatar Josh Yang
Browse files

Nullness check of StatusBarManager in display service.

Wear doesn't have StatusBarManager.

Bug: 191711565
Test: boot past the error.
Change-Id: Ib528fc74c40ffa81fa9414eb4414457ae1b16af8
parent 7f00ac7f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2029,8 +2029,10 @@ public class DisplayModeDirector {
        public void observe() {
            StatusBarManagerInternal statusBar =
                    LocalServices.getService(StatusBarManagerInternal.class);
            if (statusBar != null) {
                statusBar.setUdfpsHbmListener(this);
            }
        }

        @Override
        public void onHbmEnabled(int hbmType, int displayId) {