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

Commit d3f3750a authored by Yuri Lin's avatar Yuri Lin
Browse files

Update getNotificationChannel documentation for conversations

This specifies that if a conversation with the given ID doesn't exist, we return the parent channel instead (or null if the parent channel also doesn't exist).

Fixes: 384938441
Test: documentation only
Flag: EXEMPT documentation only
Change-Id: I8e78892a3d13ff1d3627914e225e157f27bc0ba0
parent 0e6c6cd2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1286,6 +1286,10 @@ public class NotificationManager {
     * delegate for (see {@link #canNotifyAsPackage(String)}), or it will not be returned. To query
     * a channel as a notification delegate, call this method from a context created for that
     * package (see {@link Context#createPackageContext(String, int)}).</p>
     *
     * <p>If a conversation channel with the given conversation id is not found, this method will
     * instead return the parent channel with the given channel ID, or {@code null} if neither
     * exists.</p>
     */
    public @Nullable NotificationChannel getNotificationChannel(@NonNull String channelId,
            @NonNull String conversationId) {