Add new constant for semantic action types.
Test: cts Bug: 161333455 Change-Id: I566811160c8b9b37977ae2a903f419f3084e265e
This commit is contained in:
@@ -678,6 +678,7 @@ package android.app {
|
||||
}
|
||||
|
||||
public static class Notification.Action implements android.os.Parcelable {
|
||||
field public static final int SEMANTIC_ACTION_CONVERSATION_IS_PHISHING = 12; // 0xc
|
||||
field public static final int SEMANTIC_ACTION_MARK_CONVERSATION_AS_PRIORITY = 11; // 0xb
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user