diff options
| author | Julia Reynolds <juliacr@google.com> | 2021-02-11 10:09:28 -0500 |
|---|---|---|
| committer | Julia Reynolds <juliacr@google.com> | 2021-02-12 18:33:41 +0000 |
| commit | 87872bcd037dd75c329e06af8e9f59474c666a25 (patch) | |
| tree | 6c2f56a9da8c368f46dc62c2a6ddd04f1f8b17d7 /core/java/android | |
| parent | 87d49d2f277b68bae6199f34488060881c0dfaa0 (diff) | |
Add new constant for semantic action types.
Test: cts
Bug: 161333455
Change-Id: I566811160c8b9b37977ae2a903f419f3084e265e
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/Notification.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index b6fc47f27b05..77daf8ddf08f 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1604,6 +1604,14 @@ public class Notification implements Parcelable @SystemApi public static final int SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY = 11; + /** + * {@code SemanticAction}: Mark content as a potential phishing attempt. + * Note that this is only for use by the notification assistant services. + * @hide + */ + @SystemApi + public static final int SEMANTIC_ACTION_CONVERSATION_IS_PHISHING = 12; + private final Bundle mExtras; @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) private Icon mIcon; @@ -2315,7 +2323,8 @@ public class Notification implements Parcelable SEMANTIC_ACTION_THUMBS_UP, SEMANTIC_ACTION_THUMBS_DOWN, SEMANTIC_ACTION_CALL, - SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY + SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY, + SEMANTIC_ACTION_CONVERSATION_IS_PHISHING }) @Retention(RetentionPolicy.SOURCE) public @interface SemanticAction {} |
