diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-08-18 22:12:59 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-08-18 22:19:56 +0200 |
| commit | f0bec329b8224d64d249254d5e352d9107051969 (patch) | |
| tree | 7f6de29a7fb9ccb08306ff8623b222cecdd94933 /main/res | |
| parent | c5415a09c1f3e48c5c2a8696f733f418454b19fd (diff) | |
| download | cgeo-f0bec329b8224d64d249254d5e352d9107051969.zip cgeo-f0bec329b8224d64d249254d5e352d9107051969.tar.gz cgeo-f0bec329b8224d64d249254d5e352d9107051969.tar.bz2 | |
Make low-power mode optional
Diffstat (limited to 'main/res')
| -rw-r--r-- | main/res/values/preference_keys.xml | 1 | ||||
| -rw-r--r-- | main/res/values/strings.xml | 3 | ||||
| -rw-r--r-- | main/res/xml/preferences.xml | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/main/res/values/preference_keys.xml b/main/res/values/preference_keys.xml index 47eae46..e8840f5 100644 --- a/main/res/values/preference_keys.xml +++ b/main/res/values/preference_keys.xml @@ -107,6 +107,7 @@ <string name="pref_gccustomdate">gccustomdate</string> <string name="pref_cookiestore">cookiestore</string> <string name="pref_googleplayservices">googleplayservices</string> + <string name="pref_lowpowermode">lowpowerlocation</string> <string name="pref_lastdetailspage">lastdetailspage</string> <string name="pref_livemapstrategy">livemapstrategy</string> <string name="pref_livemaphintshowcount">livemaphintshowcount</string> diff --git a/main/res/values/strings.xml b/main/res/values/strings.xml index ec01a10..e3f7825 100644 --- a/main/res/values/strings.xml +++ b/main/res/values/strings.xml @@ -529,8 +529,9 @@ <string name="init_maintenance_directories_note">c:geo stores images, log images and other files related to a cache in a separate directory. In some cases (like importing/exporting the database) this directory may contain outdated files, which can be deleted here.</string> <string name="init_maintenance_directories">Delete orphaned files</string> <string name="init_location">Geolocation</string> - <string name="init_location_note">On devices equipped with Google Play Services, c:geo can automatically use a better geolocation provider. However, this prevents the use of an external BlueTooth GPS receiver.</string> + <string name="init_location_note">On devices equipped with Google Play Services, c:geo can automatically use a better geolocation provider. However, this prevents the use of an external BlueTooth GPS receiver. Also, a low-power mode can prevent the use of the GPS when a highly accurate location is not strictly necessary.</string> <string name="init_location_googleplayservices">Use Google Play Services</string> + <string name="init_location_lowpower">Low-power mode</string> <string name="init_create_memory_dump">Create memory dump</string> <string name="init_memory_dump">Memory dump</string> <string name="init_memory_dumped">Memory dumped to %s</string> diff --git a/main/res/xml/preferences.xml b/main/res/xml/preferences.xml index 6d7f546..54b3353 100644 --- a/main/res/xml/preferences.xml +++ b/main/res/xml/preferences.xml @@ -749,10 +749,15 @@ <cgeo.geocaching.settings.TextPreference android:layout="@layout/text_preference" android:text="@string/init_location_note" /> + <CheckBoxPreference android:defaultValue="true" android:key="@string/pref_googleplayservices" android:title="@string/init_location_googleplayservices" /> + <CheckBoxPreference + android:defaultValue="false" + android:key="@string/pref_lowpowermode" + android:title="@string/init_location_lowpower" /> </PreferenceCategory> <PreferenceCategory android:title="@string/init_debug_title" > <cgeo.geocaching.settings.TextPreference |
