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

Commit 98f5e186 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am c3a6cd6e: Merge "Move a line into try block"

* commit 'c3a6cd6e':
  Move a line into try block
parents aeb1fa77 c3a6cd6e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -343,8 +343,8 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
    public boolean onPreferenceChange(Preference preference, Object objValue) {
        final String key = preference.getKey();
        if (KEY_SCREEN_TIMEOUT.equals(key)) {
            int value = Integer.parseInt((String) objValue);
            try {
                int value = Integer.parseInt((String) objValue);
                Settings.System.putInt(getContentResolver(), SCREEN_OFF_TIMEOUT, value);
                updateTimeoutPreferenceDescription(value);
            } catch (NumberFormatException e) {