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

Commit e66919a9 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android (Google) Code Review
Browse files

Merge "Fix crash during boot."

parents e2361efc 05a9f1d8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -776,8 +776,9 @@ public final class PowerManagerService extends SystemService
                    intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
                    mContext.sendBroadcast(intent);
                    // Send internal version that requires signature permission.
                    mContext.sendBroadcastAsUser(new Intent(
                            PowerManager.ACTION_POWER_SAVE_MODE_CHANGED_INTERNAL), UserHandle.ALL,
                    intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED_INTERNAL);
                    intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
                    mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
                            Manifest.permission.DEVICE_POWER);
                }
            });