am 8f793103: Merge "Set foreground priority for shutdown receivers."
* commit '8f793103d81e988e2ef25ecdfde1b279e299a97e': Set foreground priority for shutdown receivers.
This commit is contained in:
committed by
Android Git Automerger
commit
57512008e2
@@ -297,7 +297,9 @@ public final class ShutdownThread extends Thread {
|
|||||||
|
|
||||||
// First send the high-level shut down broadcast.
|
// First send the high-level shut down broadcast.
|
||||||
mActionDone = false;
|
mActionDone = false;
|
||||||
mContext.sendOrderedBroadcastAsUser(new Intent(Intent.ACTION_SHUTDOWN),
|
Intent intent = new Intent(Intent.ACTION_SHUTDOWN);
|
||||||
|
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||||
|
mContext.sendOrderedBroadcastAsUser(intent,
|
||||||
UserHandle.ALL, null, br, mHandler, 0, null, null);
|
UserHandle.ALL, null, br, mHandler, 0, null, null);
|
||||||
|
|
||||||
final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;
|
final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;
|
||||||
|
|||||||
Reference in New Issue
Block a user