summaryrefslogtreecommitdiffstats
path: root/res/values/cm_strings.xml
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-04-15 10:11:36 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-04-15 11:37:41 -0700
commitf1e42d8741c760433876b17a151b8b0cc2502b8b (patch)
tree93f7c0c8a6877fc57e3e88c326cfe2c195ff2283 /res/values/cm_strings.xml
parent791434fdc31f09821e703e89cd071000807bdf32 (diff)
downloadpackages_apps_Settings-f1e42d8741c760433876b17a151b8b0cc2502b8b.tar.gz
packages_apps_Settings-f1e42d8741c760433876b17a151b8b0cc2502b8b.tar.bz2
packages_apps_Settings-f1e42d8741c760433876b17a151b8b0cc2502b8b.zip
Prevent crash if weather settings activity can't be found
Each weather provider service may define a settings activity which will be automatically launched when the user selects the provider. If such activity can't be found, an ActivityNotFoundException is thrown. This patch adds a try/catch block to avoid crashing the settings app if the activity can't be found A toast will be displayed to notify the user. Otherwise, the user would never know why the settings gear is doing nothing Change-Id: I3c3d54ce8f9131353077c34a2f821ec6b0fc0268 TICKET: CYNGNOS-2478
Diffstat (limited to 'res/values/cm_strings.xml')
-rw-r--r--res/values/cm_strings.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml
index 337c31ca2..128660e02 100644
--- a/res/values/cm_strings.xml
+++ b/res/values/cm_strings.xml
@@ -1166,6 +1166,7 @@
<string name="weather_settings_title">Weather</string>
<string name="weather_settings_no_services_prompt">No weather provider services installed</string>
<string name="weather_settings_button">Provider settings</string>
+ <string name="weather_settings_activity_not_found">Unable to launch the settings menu of this provider</string>
<string name="background_data_access">Background data access</string>
<string name="allow_background_both">Over cellular data &amp; Wi\u2011Fi</string>