Messaging: Add "Mark as read" quick action for message notifications
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com> Change-Id: I7194dca022e5062926fa35709de282721ca64320
This commit is contained in:
@@ -69,6 +69,9 @@ public abstract class UIIntents {
|
||||
public static final String ACTION_RESET_NOTIFICATIONS =
|
||||
"com.android.messaging.reset_notifications";
|
||||
|
||||
public static final String ACTION_MARK_AS_READ =
|
||||
"com.android.messaging.mark_as_read";
|
||||
|
||||
// Sending VCard uri to VCard detail activity
|
||||
public static final String UI_INTENT_EXTRA_VCARD_URI = "vcard_uri";
|
||||
|
||||
@@ -333,6 +336,14 @@ public abstract class UIIntents {
|
||||
final int updateTargets, final ConversationIdSet conversationIdSet,
|
||||
final int requestCode);
|
||||
|
||||
/**
|
||||
* Get a PendingIntent for marking a conversation as read.
|
||||
*
|
||||
* <p>This is intended to be used by notifications.
|
||||
*/
|
||||
public abstract PendingIntent getPendingIntentForMarkingAsRead(final Context context,
|
||||
final ConversationIdSet conversationIdSet, final int requestCode);
|
||||
|
||||
/**
|
||||
* Get a PendingIntent for showing low storage notifications.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user