Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57512008 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 8f793103: Merge "Set foreground priority for shutdown receivers."

* commit '8f793103':
  Set foreground priority for shutdown receivers.
parents e14afe71 8f793103
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -297,7 +297,9 @@ public final class ShutdownThread extends Thread {
        
        // First send the high-level shut down broadcast.
        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);
        
        final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;