From acd03023908a7731fbd336a8829d5092294025a3 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 26 Jan 2015 01:50:55 +0100 Subject: [PATCH] update widget --- OsmAnd/res/values/strings.xml | 1 + .../plus/views/mapwidgets/MapInfoWidgetsFactory.java | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 36ac4d74ca..f97bca788c 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,7 @@ 3. All your modified/created strings are in the top of the file (to make easier find what\'s translated). PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> + GPS Status Download nightly builds Builds Street lighting diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java index 354f87d0bf..5b7a9ded30 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapInfoWidgetsFactory.java @@ -153,17 +153,12 @@ public class MapInfoWidgetsFactory { OsmandMonitoringPlugin.MINUTES, null, vs, dm); if (Version.isGpsStatusEnabled(app)) { - Button sp = new Button(map); - sp.setPadding((int)(7 * dm.density), (int)(5 * dm.density), (int)(7* dm.density), 0); - sp.setOnClickListener(new View.OnClickListener() { - + dlg.setNeutralButton(R.string.gps_status, new DialogInterface.OnClickListener() { @Override - public void onClick(View v) { - dlgshow[0].dismiss(); - new StartGPSStatus(map).run(); + public void onClick(DialogInterface dialog, int which) { + new StartGPSStatus(map).run(); } }); - ll.addView(sp); } dlg.setView(ll); dlg.setPositiveButton(R.string.default_buttons_ok, new DialogInterface.OnClickListener() {