From 3bddefe44e413798ed227e04f73f8e3072076b6c Mon Sep 17 00:00:00 2001 From: Zahnstocher Date: Sun, 16 Nov 2014 23:49:38 +0100 Subject: [PATCH] Only turn off the screen if map is shown (wake on voice) --- OsmAnd/src/net/osmand/plus/activities/MapActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();