aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-02-10 11:10:54 +0100
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-02-10 11:10:54 +0100
commit25b184bd620d60b89ae1fb04d4e0bb502d14080d (patch)
treebe7bb33f0c67adfee3d8cce85888a50da63e310e
parent0ef4195e94f316df8ba4e9032c7f58722aad8cc8 (diff)
downloadBlueGPS-25b184bd620d60b89ae1fb04d4e0bb502d14080d.zip
BlueGPS-25b184bd620d60b89ae1fb04d4e0bb502d14080d.tar.gz
BlueGPS-25b184bd620d60b89ae1fb04d4e0bb502d14080d.tar.bz2
add a option to force aute-activation of the chosen location provider
-rw-r--r--res/values-en/strings.xml3
-rw-r--r--res/values-fr/strings.xml3
-rw-r--r--res/values/constants.xml1
-rw-r--r--res/values/strings.xml3
-rw-r--r--res/xml/pref.xml7
5 files changed, 17 insertions, 0 deletions
diff --git a/res/values-en/strings.xml b/res/values-en/strings.xml
index 4caad7d..c653854 100644
--- a/res/values-en/strings.xml
+++ b/res/values-en/strings.xml
@@ -29,6 +29,9 @@
<string name="pref_replace_std_gps_title">Replace internal GPS</string>
<string name="pref_replace_std_gps_summary_on">Bluetooth GPS will replace internal GPS</string>
<string name="pref_replace_std_gps_summary_off">Bluetooth GPS will use a new location provider</string>
+ <string name="pref_force_enable_provider_title">Auto-enable location provider</string>
+ <string name="pref_force_enable_provider_summary_on">Auto-enable the location provider, even if it has been disabled</string>
+ <string name="pref_force_enable_provider_summary_off">Auto-enable the location provider only if it doesn\'t exist yet</string>
<string name="pref_mock_gps_name_title">Mock location provider name</string>
<string name="pref_mock_gps_name_summary">Bluetooth GPS name: %s</string>
<string name="pref_recording_title">Enable/Disable NMEA log</string>
diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml
index 2b4418e..9e55321 100644
--- a/res/values-fr/strings.xml
+++ b/res/values-fr/strings.xml
@@ -30,6 +30,9 @@
<string name="pref_replace_std_gps_title">Remplacer le GPS interne</string>
<string name="pref_replace_std_gps_summary_on">Le GPS Bluetooth remplacera le GPS interne</string>
<string name="pref_replace_std_gps_summary_off">Un nouveau location provider sera utilisé</string>
+ <string name="pref_force_enable_provider_title">Forcer l\'activation du location provider</string>
+ <string name="pref_force_enable_provider_summary_on">Auto-activation du provider, même si l\'utilisateur l\'a desactivé</string>
+ <string name="pref_force_enable_provider_summary_off">Auto-activation du provider, uniquement s\'il n\'existe pas déjà.</string>
<string name="pref_mock_gps_name_title">Nom du location provider</string>
<string name="pref_mock_gps_name_summary">Nom du GPS Bluetooth : %s</string>
<string name="pref_connection_retries_title">Nombre de connexions</string>
diff --git a/res/values/constants.xml b/res/values/constants.xml
index 47ab9db..79a76d3 100644
--- a/res/values/constants.xml
+++ b/res/values/constants.xml
@@ -24,6 +24,7 @@
<string name="pref_start_gps_key">startGps</string>
<string name="pref_gps_location_provider_key">gpsLocationProviderKey</string>
<string name="pref_replace_std_gps_key">replaceStdtGps</string>
+ <string name="pref_force_enable_provider_key">forceEnableProvider</string>
<string name="pref_mock_gps_name_key">mockGpsName</string>
<string name="pref_connection_retries_key">connectionRetries</string>
<string name="pref_recording_key">trackRecording</string>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 79f4a2d..e3d3d1c 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -33,6 +33,9 @@
<string name="pref_replace_std_gps_summary_off">Internal GPS will remain available</string>
-->
<string name="pref_replace_std_gps_summary_off">Bluetooth GPS will use a new location provider</string>
+ <string name="pref_force_enable_provider_title">Auto-enable location provider</string>
+ <string name="pref_force_enable_provider_summary_on">Auto-enable the location provider, even if it has been disabled</string>
+ <string name="pref_force_enable_provider_summary_off">Auto-enable the location provider only if it doesn\'t exist yet</string>
<string name="pref_mock_gps_name_title">Mock location provider name</string>
<string name="pref_mock_gps_name_summary">Bluetooth GPS name: %s</string>
<string name="pref_connection_retries_title">Connection retry number</string>
diff --git a/res/xml/pref.xml b/res/xml/pref.xml
index 84478d0..92e2628 100644
--- a/res/xml/pref.xml
+++ b/res/xml/pref.xml
@@ -48,6 +48,13 @@
android:title="@string/pref_replace_std_gps_title"
android:summaryOn="@string/pref_replace_std_gps_summary_on"
android:summaryOff="@string/pref_replace_std_gps_summary_off" />
+ <CheckBoxPreference
+ android:key="@string/pref_force_enable_provider_key"
+ android:persistent="true"
+ android:defaultValue="false"
+ android:title="@string/pref_force_enable_provider_title"
+ android:summaryOn="@string/pref_force_enable_provider_summary_on"
+ android:summaryOff="@string/pref_force_enable_provider_summary_off" />
<EditTextPreference
android:dependency="@string/pref_replace_std_gps_key"
android:key="@string/pref_mock_gps_name_key"