Merge "Fix notification vibration demos in settings" into main
diff --git a/src/com/android/settings/accessibility/VibrationPreferenceConfig.java b/src/com/android/settings/accessibility/VibrationPreferenceConfig.java
index c25c38e..a304862 100644
--- a/src/com/android/settings/accessibility/VibrationPreferenceConfig.java
+++ b/src/com/android/settings/accessibility/VibrationPreferenceConfig.java
@@ -150,9 +150,13 @@
@VibrationAttributes.Usage int vibrationUsage) {
return new VibrationAttributes.Builder()
.setUsage(vibrationUsage)
- // Enforce fresh settings to be applied for the preview vibration, as they
- // are played immediately after the new user values are set.
- .setFlags(VibrationAttributes.FLAG_INVALIDATE_SETTINGS_CACHE)
+ .setFlags(
+ // Enforce fresh settings to be applied for the preview vibration, as they
+ // are played immediately after the new user values are set.
+ VibrationAttributes.FLAG_INVALIDATE_SETTINGS_CACHE
+ // Bypass user settings to allow vibration previews to be played while in
+ // limited interruptions' mode, e.g. zen mode.
+ | VibrationAttributes.FLAG_BYPASS_INTERRUPTION_POLICY)
.build();
}