update widget
This commit is contained in:
parent
52432ccea5
commit
acd0302390
2 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
-->
|
||||
<string name="gps_status">GPS Status</string>
|
||||
<string name="version_settings_descr">Download nightly builds</string>
|
||||
<string name="version_settings">Builds</string>
|
||||
<string name="rendering_attr_streetLighting_name">Street lighting</string>
|
||||
|
|
|
@ -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();
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue