diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-11-29 16:07:44 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-11-29 16:07:44 -0800 |
commit | 04b646df1e9f00719d2d547fa1da59407bb6be67 (patch) | |
tree | 06e08d8440b6d5013228b86fa7cdf48dd454f93a | |
parent | 8815f03202abf3117b6a1f6a058a835915ddae04 (diff) | |
parent | 378b6f674064e373f1be4d230608be4d0bddbb4f (diff) | |
download | packages_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.java | 2 |
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) { |