Merge "Do not assume presence of status bar service in GlobalActions"
This commit is contained in:
committed by
Android (Google) Code Review
commit
45061584d5
@@ -43,7 +43,11 @@ class GlobalActions implements GlobalActionsListener {
|
||||
mLegacyGlobalActions = new LegacyGlobalActions(context, windowManagerFuncs,
|
||||
this::onGlobalActionsDismissed);
|
||||
mStatusBarInternal = LocalServices.getService(StatusBarManagerInternal.class);
|
||||
mStatusBarInternal.setGlobalActionsListener(this);
|
||||
|
||||
// Some form factors do not have a status bar.
|
||||
if (mStatusBarInternal != null) {
|
||||
mStatusBarInternal.setGlobalActionsListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void showDialog(boolean keyguardShowing, boolean deviceProvisioned) {
|
||||
|
||||
Reference in New Issue
Block a user