aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/speech
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-09-15 23:10:48 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-09-15 23:10:51 +0200
commit2091b92a864c5839012cc0b1dd06c0aa521f1206 (patch)
tree03fc3d8c61336095ed80d66f6d3372822892b628 /tests/src/cgeo/geocaching/speech
parentf4a281397ed951223a1d5cf08ba104c6edeb61e6 (diff)
downloadcgeo-2091b92a864c5839012cc0b1dd06c0aa521f1206.zip
cgeo-2091b92a864c5839012cc0b1dd06c0aa521f1206.tar.gz
cgeo-2091b92a864c5839012cc0b1dd06c0aa521f1206.tar.bz2
fix #4359: imperial units checkbox not always correct
This has been fixed by initializing the key to its default value instead of just the checkbox. Also, better names have been used throughout the settings to reflect the fact that "units" meant "use imperial units". It was used in both ways, including the wrong way while migrating the settings.
Diffstat (limited to 'tests/src/cgeo/geocaching/speech')
-rw-r--r--tests/src/cgeo/geocaching/speech/TextFactoryTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/cgeo/geocaching/speech/TextFactoryTest.java b/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
index c53aec9..1f309ba 100644
--- a/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
+++ b/tests/src/cgeo/geocaching/speech/TextFactoryTest.java
@@ -35,7 +35,7 @@ public class TextFactoryTest extends AndroidTestCase {
final Configuration config = resources.getConfiguration();
defaultLocale1 = config.locale;
defaultLocale2 = Locale.getDefault();
- defaultMetric = !Settings.isUseImperialUnits();
+ defaultMetric = !Settings.useImperialUnits();
}
@Override