mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-23 08:17:51 +00:00
Enable power save mode only when not installed from the Play store
This commit is contained in:
parent
0a0f216861
commit
96bac0489a
1 changed files with 1 additions and 1 deletions
|
@ -1674,7 +1674,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
registerReceiver(interactiveStateReceiver, ifInteractive);
|
||||
|
||||
// Listen for power save mode
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && !Util.isPlayStoreInstall(this)) {
|
||||
PowerManager pm = (PowerManager) getSystemService(POWER_SERVICE);
|
||||
powersaving = pm.isPowerSaveMode();
|
||||
IntentFilter ifPower = new IntentFilter();
|
||||
|
|
Loading…
Reference in a new issue