diff options
| author | 2025-01-28 08:55:07 -0800 | |
|---|---|---|
| committer | 2025-01-28 08:55:07 -0800 | |
| commit | fb66a2666a49c3d254a49c39c556b0011b9a9290 (patch) | |
| tree | 7a817b9631b6aa5e04ac86a8ecd56e9a13eb6e43 | |
| parent | d8c4e73baae9d7f7c9a25e3d187bfb21d51fb2ad (diff) | |
| parent | 7b9909aeb75963f3cdaefc0ef31be937e7ee44b0 (diff) | |
Merge "Add extra to feedback action" into main
| -rw-r--r-- | core/api/system-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/service/notification/NotificationAssistantService.java | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 7483316e94b0..bfbdb7276be0 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -13480,6 +13480,7 @@ package android.service.notification { method public final void unsnoozeNotification(@NonNull String); field public static final String ACTION_NOTIFICATION_ASSISTANT_DETAIL_SETTINGS = "android.service.notification.action.NOTIFICATION_ASSISTANT_DETAIL_SETTINGS"; field @FlaggedApi("android.service.notification.notification_classification") public static final String ACTION_NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS = "android.service.notification.action.NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS"; + field @FlaggedApi("android.app.nm_summarization") public static final String EXTRA_NOTIFICATION_ADJUSTMENT = "android.service.notification.extra.NOTIFICATION_ADJUSTMENT"; field @FlaggedApi("android.service.notification.notification_classification") public static final String EXTRA_NOTIFICATION_KEY = "android.service.notification.extra.NOTIFICATION_KEY"; field public static final String FEEDBACK_RATING = "feedback.rating"; field public static final String SERVICE_INTERFACE = "android.service.notification.NotificationAssistantService"; diff --git a/core/java/android/service/notification/NotificationAssistantService.java b/core/java/android/service/notification/NotificationAssistantService.java index 0a9276c34bfd..037292625d93 100644 --- a/core/java/android/service/notification/NotificationAssistantService.java +++ b/core/java/android/service/notification/NotificationAssistantService.java @@ -113,6 +113,8 @@ public abstract class NotificationAssistantService extends NotificationListenerS * <p> * Input: {@link #EXTRA_NOTIFICATION_KEY}, the {@link StatusBarNotification#getKey()} of the * notification the user wants to file feedback for. + * Input: {@link #EXTRA_NOTIFICATION_ADJUSTMENT}, the {@link Adjustment} key that the user wants + * to file feedback about. * <p> * Output: Nothing. */ @@ -131,6 +133,16 @@ public abstract class NotificationAssistantService extends NotificationListenerS = "android.service.notification.extra.NOTIFICATION_KEY"; /** + * A string extra containing the {@link Adjustment} key that the user wants to file feedback + * about. + * + * Extra for {@link #ACTION_NOTIFICATION_ASSISTANT_FEEDBACK_SETTINGS}. + */ + @FlaggedApi(android.app.Flags.FLAG_NM_SUMMARIZATION) + public static final String EXTRA_NOTIFICATION_ADJUSTMENT + = "android.service.notification.extra.NOTIFICATION_ADJUSTMENT"; + + /** * Data type: int, the feedback rating score provided by user. The score can be any integer * value depends on the experimental and feedback UX design. */ |