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

Commit 378b6f67 authored by Peter Kuterna's avatar Peter Kuterna
Browse files

Possible NumberFormatException of parseInt is outside try-catch

Change-Id: I77c1e41185a8d3a1724af848d6bbfbb1da816b55
parent 8815f032
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) {