diff options
Diffstat (limited to 'cm/lib')
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java index ee913ed..5905836 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java @@ -83,6 +83,12 @@ public class CMStatusBarManagerService extends SystemService { @Override public void onStart() { + if (!mContext.getPackageManager().hasSystemFeature( + CMContextConstants.Features.STATUSBAR)) { + Log.wtf(TAG, "CM statusbar service started by system server but feature xml not" + + " declared. Not publishing binder service!"); + return; + } Log.d(TAG, "registerCMStatusBar cmstatusbar: " + this); mCustomTileListeners = new CustomTileListeners(); publishBinderService(CMContextConstants.CM_STATUS_BAR_SERVICE, mService); |