Merge "Work on issue #29422027: APR: Runtime restarts in system_server" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
531c0237fc
@@ -227,7 +227,8 @@ public final class BroadcastQueue {
|
||||
|
||||
public final boolean replaceParallelBroadcastLocked(BroadcastRecord r) {
|
||||
for (int i = mParallelBroadcasts.size() - 1; i >= 0; i--) {
|
||||
if (r.intent.filterEquals(mParallelBroadcasts.get(i).intent)) {
|
||||
final Intent curIntent = mParallelBroadcasts.get(i).intent;
|
||||
if (r.intent.filterEquals(curIntent)) {
|
||||
if (DEBUG_BROADCAST) Slog.v(TAG_BROADCAST,
|
||||
"***** DROPPING PARALLEL ["
|
||||
+ mQueueName + "]: " + r.intent);
|
||||
|
||||
@@ -219,6 +219,9 @@ final class BroadcastRecord extends Binder {
|
||||
int _resultCode, String _resultData, Bundle _resultExtras, boolean _serialized,
|
||||
boolean _sticky, boolean _initialSticky,
|
||||
int _userId) {
|
||||
if (_intent == null) {
|
||||
throw new NullPointerException("Can't construct with a null intent");
|
||||
}
|
||||
queue = _queue;
|
||||
intent = _intent;
|
||||
targetComp = _intent.getComponent();
|
||||
|
||||
Reference in New Issue
Block a user