Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12b12979 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit Committed by Shreerag Jayakrishnan
Browse files

Fix NotificationChannel#setVibrationPattern API Documentation

NotificationManagerService has a logic to fallback to a default vibration pattern if the channel has vibration enabled. Accordingly, this CL fixes the message in the setVibrationPattern API Javadoc.

Change-Id: I909819eb98e5fe3ab8b80f25db7437860ac560ca
parent d54dd08f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)}.