diff options
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java | 11 |
1 files changed, 11 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 fd72960..f824678 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMStatusBarManagerService.java @@ -113,6 +113,17 @@ public class CMStatusBarManagerService extends SystemService { final ComponentName component, final int userid) { enforceBindCustomTileListener(); mCustomTileListeners.registerService(listener, component, userid); + + // Notify registered tiles + try { + for (ExternalQuickSettingsRecord qsTile : mQSTileList) { + if (userid == UserHandle.USER_ALL || qsTile.getUserId() == userid) { + listener.onCustomTilePosted(new StatusBarCustomTileHolder(qsTile.sbTile)); + } + } + } catch (RemoteException re) { + // Ignore + } } /** |