Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04b646df authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Code Review
Browse files

Merge "Possible NumberFormatException of parseInt is outside try-catch"

parents 8815f032 378b6f67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {