Change to public POWER_SAVE_MODE_CHANGED broadcast.
The POWER_SAVE_MODE_CHANGING broadcast is sent at the same time as the POWER_SAVE_MODE_CHANGED broadcast. Since broadcasts are asynchronous, there's no reason to have both, so we're simplifying down to just one. Bug: 79580230 Test: atest BatterySaverReceiverTest Change-Id: Ib27fc91bc23126f58532e534575d912e3b72ac43
This commit is contained in:
@@ -68,7 +68,7 @@ public class BatterySaverReceiverTest {
|
||||
|
||||
@Test
|
||||
public void testOnReceive_powerSaveModeChanged_invokeCallback() {
|
||||
Intent intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGING);
|
||||
Intent intent = new Intent(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED);
|
||||
|
||||
mBatterySaverReceiver.onReceive(mContext, intent);
|
||||
|
||||
|
Reference in New Issue
Block a user