Fix issue #7274813: A few sticky broadcasts aren't being sent to all users

Change-Id: I2fc89de36be0709946f562f64002d0f6d223401f
This commit is contained in:
Dianne Hackborn
2012-10-02 16:23:39 -07:00
parent 11d8481f10
commit aa4b3c79f2

View File

@ -405,7 +405,7 @@ public class DeviceStorageMonitorService extends Binder {
notification.setLatestEventInfo(mContext, title, details, intent);
mNotificationMgr.notifyAsUser(null, LOW_MEMORY_NOTIFICATION_ID, notification,
UserHandle.ALL);
mContext.sendStickyBroadcast(mStorageLowIntent);
mContext.sendStickyBroadcastAsUser(mStorageLowIntent, UserHandle.ALL);
}
/**
@ -428,7 +428,7 @@ public class DeviceStorageMonitorService extends Binder {
*/
private final void sendFullNotification() {
if(localLOGV) Slog.i(TAG, "Sending memory full notification");
mContext.sendStickyBroadcast(mStorageFullIntent);
mContext.sendStickyBroadcastAsUser(mStorageFullIntent, UserHandle.ALL);
}
/**