The solution is not to try to change your response at supportsLowPowerMode()runtime, but to start and stop your extension.
, LPM, true supportsLowPowerMode(). LPM , , onActiveLowPowerModeChange(). , LPM, , :
@Override
public void onActiveLowPowerModeChange(boolean lowPowerModeOn) {
super.onActiveLowPowerModeChange(lowPowerModeOn);
if (lowPowerModeOn) {
stopRequest();
}
}
, , LPM.
EDIT: , . false supportsLowPowerMode(), SW2 ( ) , . , , "" SW2, . stopRequest() ( ) , SW2. ; pauseRequest(), API .