am b68b35dd: am 04b646df: Merge "Possible NumberFormatException of parseInt is outside try-catch"

* commit 'b68b35dd6a12b728924e5a7afc64ea58cd242c65':
  Possible NumberFormatException of parseInt is outside try-catch
This commit is contained in:
Jean-Baptiste Queru
2010-11-29 16:13:18 -08:00
committed by Android Git Automerger

View File

@@ -336,8 +336,8 @@ public class SoundSettings extends SettingsPreferenceFragment 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) {