aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-06-07 15:44:15 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-06-07 16:15:07 +0200
commit17724b0ca012f553d195d785b2ff0c302c110dd2 (patch)
treeffc920f05a407b8454ea213b5a4c40544926f353 /main
parentce33308632907c365c8a38ef5594c72fd584f3b0 (diff)
downloadcgeo-17724b0ca012f553d195d785b2ff0c302c110dd2.zip
cgeo-17724b0ca012f553d195d785b2ff0c302c110dd2.tar.gz
cgeo-17724b0ca012f553d195d785b2ff0c302c110dd2.tar.bz2
French translation: use a shorter string
Diffstat (limited to 'main')
-rw-r--r--main/res/values-fr/strings.xml2
-rw-r--r--main/src/cgeo/geocaching/GeoDataProvider.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/main/res/values-fr/strings.xml b/main/res/values-fr/strings.xml
index 4b80de1..3630e79 100644
--- a/main/res/values-fr/strings.xml
+++ b/main/res/values-fr/strings.xml
@@ -232,7 +232,7 @@
<string name="info_storing_static_maps">Sauvegarde des cartes statiques</string>
<!-- location service -->
- <string name="loc_last">Dernière pos. connue</string>
+ <string name="loc_last">Aucun</string>
<string name="loc_net">Réseau</string>
<string name="loc_gps">Gps</string>
<string name="loc_sat">Satellites</string>
diff --git a/main/src/cgeo/geocaching/GeoDataProvider.java b/main/src/cgeo/geocaching/GeoDataProvider.java
index dca160e..a52420a 100644
--- a/main/src/cgeo/geocaching/GeoDataProvider.java
+++ b/main/src/cgeo/geocaching/GeoDataProvider.java
@@ -177,8 +177,10 @@ class GeoDataProvider extends MemorySubject<IGeoData> {
}
} else if (lastGpsLocation != null) {
copyCoords(initialLocation, lastGpsLocation);
- } else {
+ } else if (lastNetworkLocation != null) {
copyCoords(initialLocation, lastNetworkLocation);
+ } else {
+ Log.i("GeoDataProvider: no last known location available");
}
} catch (final Exception e) {
// This error is non-fatal as its only consequence is that we will start with a dummy location