summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-11-29 16:11:16 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-11-29 16:11:16 -0800
commitb68b35dd6a12b728924e5a7afc64ea58cd242c65 (patch)
tree7aabdca09fe1ba18e5835ea227bd5b76a5452b89
parent71d43248b96c1485faabb527b23267e3ad653282 (diff)
parent04b646df1e9f00719d2d547fa1da59407bb6be67 (diff)
downloadpackages_apps_settings-b68b35dd6a12b728924e5a7afc64ea58cd242c65.zip
packages_apps_settings-b68b35dd6a12b728924e5a7afc64ea58cd242c65.tar.gz
packages_apps_settings-b68b35dd6a12b728924e5a7afc64ea58cd242c65.tar.bz2
am 04b646df: Merge "Possible NumberFormatException of parseInt is outside try-catch"
* commit '04b646df1e9f00719d2d547fa1da59407bb6be67': 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) {