revert: readd haptic feedback setting on Android 11 and lower

Some OEMs do not implement a systemwide setting for touch feedback.

This reverts commit e0a793e176.
This commit is contained in:
FineFindus
2024-05-28 07:26:08 +02:00
parent e2e8173db6
commit b17b7afd03
3 changed files with 13 additions and 1 deletions

View File

@@ -434,6 +434,8 @@ public class FooterStatusDisplayItem extends StatusDisplayItem{
}
private static void vibrateForAction(View view, boolean isPositive) {
if (!GlobalUserPreferences.hapticFeedback) return;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
view.performHapticFeedback(isPositive ? HapticFeedbackConstants.CONFIRM : HapticFeedbackConstants.REJECT);
return;