aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeo.java
diff options
context:
space:
mode:
authorbananeweizen <bananeweizen@gmx.de>2011-11-26 18:06:32 +0100
committerbananeweizen <bananeweizen@gmx.de>2011-11-26 18:06:32 +0100
commit28cc09b3d8330d906917c366b102b1b2a208405f (patch)
tree5b87997df316db9efef30ef5da50564c758d2d41 /main/src/cgeo/geocaching/cgeo.java
parent0fab2cbc4323374374df6be87fe964e7e5a4789e (diff)
downloadcgeo-28cc09b3d8330d906917c366b102b1b2a208405f.zip
cgeo-28cc09b3d8330d906917c366b102b1b2a208405f.tar.gz
cgeo-28cc09b3d8330d906917c366b102b1b2a208405f.tar.bz2
use an enum instead of magic constants for location providers
Diffstat (limited to 'main/src/cgeo/geocaching/cgeo.java')
-rw-r--r--main/src/cgeo/geocaching/cgeo.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java
index 0c9dc90..80e431a 100644
--- a/main/src/cgeo/geocaching/cgeo.java
+++ b/main/src/cgeo/geocaching/cgeo.java
@@ -569,14 +569,7 @@ public class cgeo extends AbstractActivity {
satellites = "";
}
navSatellites.setText(satellites);
-
- if (geo.gps == -1) {
- navType.setText(res.getString(R.string.loc_last));
- } else if (geo.gps == 0) {
- navType.setText(res.getString(R.string.loc_net));
- } else {
- navType.setText(res.getString(R.string.loc_gps));
- }
+ navType.setText(res.getString(geo.locationProvider.resourceId));
if (geo.accuracyNow != null) {
if (Settings.isUseMetricUnits()) {