From f5ff4c6b75d558ffd3c4c8dd4bee9fad0777b4ed Mon Sep 17 00:00:00 2001 From: yoshiki iguchi Date: Tue, 26 Feb 2019 14:00:40 +0900 Subject: [PATCH] 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) --- packages/SystemUI/src/com/android/systemui/SystemBars.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/SystemBars.java b/packages/SystemUI/src/com/android/systemui/SystemBars.java index 4285af08e7340..c4c0fd6da1241 100644 --- a/packages/SystemUI/src/com/android/systemui/SystemBars.java +++ b/packages/SystemUI/src/com/android/systemui/SystemBars.java @@ -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);