Files
Flexera-Launcher/src/com
caizhixingandcaizhixing c5c5a42ca4 fix: crash when dismissing a task with haptics on API 26-29 (#7451)
VibratorWrapper.vibrate(primitiveId, ...) calls
Vibrator.areAllPrimitivesSupported() and builds a
VibrationEffect.Composition, both added in API 30, without a version
check. Lawnchair runs down to minSdk 26, so dismissing a task in
Recents — TaskViewTouchControllerDeprecated passes PRIMITIVE_TICK, a
non-negative id — throws NoSuchMethodError and crashes the launcher
on Android 8-10 devices.

Fall back to the plain fallback effect below R, mirroring the existing
ATLEAST_S guard in vibrateForTaskbarUnstash() and the ATLEAST_Q branch
that already builds EFFECT_CLICK.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-10-30 01:33:33 +08:00
..