summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-11-29 16:07:44 -0800
committerAndroid Code Review <code-review@android.com>2010-11-29 16:07:44 -0800
commit04b646df1e9f00719d2d547fa1da59407bb6be67 (patch)
tree06e08d8440b6d5013228b86fa7cdf48dd454f93a
parent8815f03202abf3117b6a1f6a058a835915ddae04 (diff)
parent378b6f674064e373f1be4d230608be4d0bddbb4f (diff)
downloadpackages_apps_settings-04b646df1e9f00719d2d547fa1da59407bb6be67.zip
packages_apps_settings-04b646df1e9f00719d2d547fa1da59407bb6be67.tar.gz
packages_apps_settings-04b646df1e9f00719d2d547fa1da59407bb6be67.tar.bz2
Merge "Possible NumberFormatException of parseInt is outside try-catch"
-rw-r--r--src/com/android/settings/SoundSettings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/SoundSettings.java b/src/com/android/settings/SoundSettings.java
index a735268..2984684 100644
--- a/src/com/android/settings/SoundSettings.java
+++ b/src/com/android/settings/SoundSettings.java
@@ -318,8 +318,8 @@ public class SoundSettings extends PreferenceActivity implements
public boolean onPreferenceChange(Preference preference, Object objValue) {
final String key = preference.getKey();
if (KEY_EMERGENCY_TONE.equals(key)) {
- int value = Integer.parseInt((String) objValue);
try {
+ int value = Integer.parseInt((String) objValue);
Settings.System.putInt(getContentResolver(),
Settings.System.EMERGENCY_TONE, value);
} catch (NumberFormatException e) {