diff options
| author | 2022-07-18 23:57:36 +0000 | |
|---|---|---|
| committer | 2022-07-18 23:57:36 +0000 | |
| commit | 9f7e72b9767105bfa6cf1fc40d0fa77b0fcdb1c4 (patch) | |
| tree | bcc2898e0110e5edba46c0c02225da3457567785 | |
| parent | 5e11ce8ca760065240efcd30689042240b7bc5a5 (diff) | |
| parent | 12b1297938cf2f67f48f8d5f8920b0c09cb6a2f9 (diff) | |
Merge "Fix NotificationChannel#setVibrationPattern API Documentation"
| -rw-r--r-- | core/java/android/app/NotificationChannel.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/app/NotificationChannel.java b/core/java/android/app/NotificationChannel.java index c9cc1a179102..0e89b25eb37d 100644 --- a/core/java/android/app/NotificationChannel.java +++ b/core/java/android/app/NotificationChannel.java @@ -564,8 +564,10 @@ public final class NotificationChannel implements Parcelable { /** * Sets the vibration pattern for notifications posted to this channel. If the provided - * pattern is valid (non-null, non-empty), will {@link #enableVibration(boolean)} enable - * vibration} as well. Otherwise, vibration will be disabled. + * pattern is valid (non-null, non-empty), will enable vibration on this channel + * (equivalent to calling {@link #enableVibration(boolean)} with {@code true}). + * Otherwise, vibration will be disabled unless {@link #enableVibration(boolean)} is + * used with {@code true}, in which case the default vibration will be used. * * Only modifiable before the channel is submitted to * {@link NotificationManager#createNotificationChannel(NotificationChannel)}. |