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

Commit 1cb10cd2 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

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

parents f263c705 6041c5ea
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;
        }