am dd299046: Merge "frameworks/base: Implement Mutual exclusion in BroadcastReceiver"
Merge commit 'dd29904638fb36cd5585560e83367d1f5565cc4c' into gingerbread-plus-aosp * commit 'dd29904638fb36cd5585560e83367d1f5565cc4c': frameworks/base: Implement Mutual exclusion in BroadcastReceiver
This commit is contained in:
committed by
Android Git Automerger
commit
83a2363034
@@ -3549,10 +3549,12 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
|||||||
String[] pkgs = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
|
String[] pkgs = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
|
||||||
if (pkgs != null) {
|
if (pkgs != null) {
|
||||||
for (String pkg : pkgs) {
|
for (String pkg : pkgs) {
|
||||||
if (forceStopPackageLocked(pkg, -1, false, false, false)) {
|
synchronized (ActivityManagerService.this) {
|
||||||
setResultCode(Activity.RESULT_OK);
|
if (forceStopPackageLocked(pkg, -1, false, false, false)) {
|
||||||
return;
|
setResultCode(Activity.RESULT_OK);
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user