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

Commit 836147ec authored by Tony Mak's avatar Tony Mak
Browse files

Rename onNotificationDirectReply to onNotificationDirectReplied as per ...

the API council feedback.

BUG: 120841922
Test: Build

Change-Id: I630134955bb86b36e8d186e92302ae141629f4f6
parent 41c8f388
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5416,7 +5416,7 @@ package android.service.notification {
    method public final void adjustNotifications(java.util.List<android.service.notification.Adjustment>);
    method public void onActionClicked(java.lang.String, android.app.Notification.Action, int);
    method public final android.os.IBinder onBind(android.content.Intent);
    method public void onNotificationDirectReply(java.lang.String);
    method public void onNotificationDirectReplied(java.lang.String);
    method public android.service.notification.Adjustment onNotificationEnqueued(android.service.notification.StatusBarNotification);
    method public android.service.notification.Adjustment onNotificationEnqueued(android.service.notification.StatusBarNotification, android.app.NotificationChannel);
    method public void onNotificationExpansionChanged(java.lang.String, boolean, boolean);
+1 −1
Original line number Diff line number Diff line
@@ -1236,7 +1236,7 @@ package android.service.notification {
    method public final void adjustNotifications(java.util.List<android.service.notification.Adjustment>);
    method public void onActionClicked(java.lang.String, android.app.Notification.Action, int);
    method public final android.os.IBinder onBind(android.content.Intent);
    method public void onNotificationDirectReply(java.lang.String);
    method public void onNotificationDirectReplied(java.lang.String);
    method public android.service.notification.Adjustment onNotificationEnqueued(android.service.notification.StatusBarNotification);
    method public android.service.notification.Adjustment onNotificationEnqueued(android.service.notification.StatusBarNotification, android.app.NotificationChannel);
    method public void onNotificationExpansionChanged(java.lang.String, boolean, boolean);
+2 −2
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS
     * Implement this to know when a direct reply is sent from a notification.
     * @param key the notification key
     */
    public void onNotificationDirectReply(@NonNull String key) {}
    public void onNotificationDirectReplied(@NonNull String key) {}

    /**
     * Implement this to know when a suggested reply is sent.
@@ -407,7 +407,7 @@ public abstract class NotificationAssistantService extends NotificationListenerS
                    SomeArgs args = (SomeArgs) msg.obj;
                    String key = (String) args.arg1;
                    args.recycle();
                    onNotificationDirectReply(key);
                    onNotificationDirectReplied(key);
                    break;
                }
                case MSG_ON_SUGGESTED_REPLY_SENT: {
+3 −3
Original line number Diff line number Diff line
@@ -366,9 +366,9 @@ public class Assistant extends NotificationAssistantService {
    }

    @Override
    public void onNotificationDirectReply(@NonNull String key) {
        if (DEBUG) Log.i(TAG, "onNotificationDirectReply " + key);
        mSmartActionsHelper.onNotificationDirectReply(key);
    public void onNotificationDirectReplied(@NonNull String key) {
        if (DEBUG) Log.i(TAG, "onNotificationDirectReplied " + key);
        mSmartActionsHelper.onNotificationDirectReplied(key);
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class SmartActionsHelper {
        }
    }

    void onNotificationDirectReply(@NonNull String key) {
    void onNotificationDirectReplied(@NonNull String key) {
        if (mTextClassifier == null) {
            return;
        }
Loading