From 1ec7e754d2c6eac037fe8ec3eb94112307155e22 Mon Sep 17 00:00:00 2001 From: Simon Bowden Date: Thu, 25 Aug 2022 17:51:30 +0100 Subject: [PATCH] Fix value and IntDef for FLAG_INVALIDATE_SETTINGS_CACHE. The previous value was not bit-aligned. Test: presubmit Bug: 242030287 Change-Id: I88bb62f2cec4d4b4bb619d04165638d23be8e2e2 --- core/java/android/os/VibrationAttributes.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/VibrationAttributes.java b/core/java/android/os/VibrationAttributes.java index 06930bb32090b..392bf4ec3eced 100644 --- a/core/java/android/os/VibrationAttributes.java +++ b/core/java/android/os/VibrationAttributes.java @@ -145,7 +145,8 @@ public final class VibrationAttributes implements Parcelable { */ @IntDef(prefix = { "FLAG_" }, flag = true, value = { FLAG_BYPASS_INTERRUPTION_POLICY, - FLAG_BYPASS_USER_VIBRATION_INTENSITY_OFF + FLAG_BYPASS_USER_VIBRATION_INTENSITY_OFF, + FLAG_INVALIDATE_SETTINGS_CACHE }) @Retention(RetentionPolicy.SOURCE) public @interface Flag{} @@ -182,7 +183,7 @@ public final class VibrationAttributes implements Parcelable { * * @hide */ - public static final int FLAG_INVALIDATE_SETTINGS_CACHE = 0x3; + public static final int FLAG_INVALIDATE_SETTINGS_CACHE = 0x4; /** * All flags supported by vibrator service, update it when adding new flag.