am 13a6df91: Merge "Only send broadcasts to registered receivers" into jb-mr1-dev

* commit '13a6df91d9016063057aed07d21c8135f22f7f18':
  Only send broadcasts to registered receivers
This commit is contained in:
Amith Yamasani
2012-10-30 10:02:36 -07:00
committed by Android Git Automerger

View File

@ -161,7 +161,8 @@ public class SearchManagerService extends ISearchManager.Stub {
}
// Inform all listeners that the list of searchables has been updated.
Intent intent = new Intent(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
| Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
mContext.sendBroadcastAsUser(intent, new UserHandle(changingUserId));
}
}