From 118114d8adc2cc67e26e95f963229f0109e1d9fe Mon Sep 17 00:00:00 2001 From: Taranenko Roman Date: Fri, 10 Oct 2014 13:51:55 +0300 Subject: [PATCH] Fixed issue 2408 ("Wake-up interval keeps changing to zero seconds") --- .../net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index 427f0b3beb..c9275b70c2 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -105,7 +105,7 @@ public class MapInfoWidgetsFactory { dlg.setTitle(app.getString(R.string.sleep_mode_stop_dialog)); //Show currently active wake-up interval - int soi = app.getSettings().SERVICE_OFF_INTERVAL.get(); + int soi = app.getNavigationService().getServiceOffInterval(); if (soi == 0) { dlg.setMessage(app.getString(R.string.gps_wake_up_timer) + ": " + app.getString(R.string.int_continuosly)); } else if (soi <= 90000) {