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

Commit 6041c5ea authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Accessibility settings crash when run for the first time on clean device

Change-Id: I9bb0b9d1ab381ba00838b1be3a76f549f32be655
parent 1a97fa13
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -489,7 +489,8 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
        mSelectLongPressTimeoutPreference.setEnabled(accessibilityEnabled);
        final int longPressTimeout;
        if (accessibilityEnabled) {
            longPressTimeout = Integer.parseInt(mSelectLongPressTimeoutPreference.getValue());
            String value = mSelectLongPressTimeoutPreference.getValue();
            longPressTimeout = (value != null) ? Integer.parseInt(value) : mLongPressTimeoutDefault;
        } else {
            longPressTimeout = mLongPressTimeoutDefault;
        }