diff options
author | Peter Kuterna <peter.kuterna@gmail.com> | 2010-11-28 22:35:31 +0100 |
---|---|---|
committer | Peter Kuterna <peter.kuterna@gmail.com> | 2010-11-28 22:35:31 +0100 |
commit | 378b6f674064e373f1be4d230608be4d0bddbb4f (patch) | |
tree | 06e08d8440b6d5013228b86fa7cdf48dd454f93a | |
parent | 8815f03202abf3117b6a1f6a058a835915ddae04 (diff) | |
download | packages_apps_Settings-378b6f674064e373f1be4d230608be4d0bddbb4f.tar.gz packages_apps_Settings-378b6f674064e373f1be4d230608be4d0bddbb4f.tar.bz2 packages_apps_Settings-378b6f674064e373f1be4d230608be4d0bddbb4f.zip |
Possible NumberFormatException of parseInt is outside try-catch
Change-Id: I77c1e41185a8d3a1724af848d6bbfbb1da816b55
-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 a735268b1..2984684fc 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) { |