diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 2b8184403d..cd3ba8bca1 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -839,7 +839,7 @@ public class MapActivity extends AccessibleActivity implements if (mDevicePolicyManager != null && mDeviceAdmin != null) { final Integer screenPowerSave = settings.WAKE_ON_VOICE_INT.get(); - if (screenPowerSave > 0) { + if (screenPowerSave > 0 && settings.MAP_ACTIVITY_ENABLED.get()) { if (mDevicePolicyManager.isAdminActive(mDeviceAdmin)) { try { mDevicePolicyManager.lockNow();