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)
This commit is contained in:
yoshiki iguchi
2019-02-26 14:00:40 +09:00
committed by Yoshiki Iguchi
parent 855b4506d4
commit f5ff4c6b75

View File

@@ -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);