From a8262e6574d015bc18b0685265088334c6ca3f12 Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 27 Aug 2014 14:03:37 +0200 Subject: [PATCH] display currently configured wake-up interval --- .../plus/views/mapwidgets/MapInfoWidgetsFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index 1b1191d48e..961c39d01c 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -102,6 +102,15 @@ public class MapInfoWidgetsFactory { if (app.getNavigationService() != null){ AlertDialog.Builder dlg = new AlertDialog.Builder(map); dlg.setTitle(app.getString(R.string.sleep_mode_stop_dialog)); + + //Show currently active wake-up interval + if (vs.value <= 90000) { + String vss = ": " + Integer.toString(vs.value/1000) + "int_seconds"; + } else { + String vss = ": " + Integer.toString(vs.value/1000/60) + "int_minutes"; + } + dlg.setMessage(app.getString(R.string.gps_wake_up_timer) + vss); + dlg.setPositiveButton(app.getString(R.string.keep_navigation_service), null); dlg.setNegativeButton(app.getString(R.string.stop_navigation_service), new DialogInterface.OnClickListener() { @Override