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

Commit f5ff4c6b authored by yoshiki iguchi's avatar yoshiki iguchi Committed by Yoshiki Iguchi
Browse files

Pass onBootCompleted from SystemBars to StatusBar class

SystemBars is a wrapper class for system bar classes which implement
SystemUI class. So SystemBars should dispatch onBootCompelete event
to a Status bar classe as well as other SystemUI events.

This will benefit any custom Status bar implementation. But under
the current implementations, this affects only ARC, since on phone,
#onBootCompleted isn't overridden in the
com.android.systemui.statusbar.phone.StatusBar.

Bug: 126294007
Bug: 128876921
Test: none

Change-Id: Ib7e206da70489b1401eb2bb01bab2bc431c022eb
(cherry picked from commit 2b80e587d182adeb1bbbbc160df4624ad1d2200c)
parent 855b4506
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -46,6 +46,13 @@ public class SystemBars extends SystemUI {
        }
    }

    @Override
    public void onBootCompleted() {
        if (mStatusBar != null) {
            mStatusBar.onBootCompleted();
        }
    }

    private void createStatusBarFromConfig() {
        if (DEBUG) Log.d(TAG, "createStatusBarFromConfig");
        final String clsName = mContext.getString(R.string.config_statusBarComponent);