Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PendingIntent replyIntent = PendingIntent.getActivity(context,
REPLY_INTENT_ID,
getDirectReplyIntent(context, LABEL_REPLY),
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent archiveIntent = PendingIntent.getActivity(context,
ARCHIVE_INTENT_ID,
getDirectReplyIntent(context, LABEL_ARCHIVE),
PendingIntent.FLAG_UPDATE_CURRENT);
private static Intent getDirectReplyIntent(Context context, String label) {
return MessageActivity.getStartIntent(context)
.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES)
.setAction(REPLY_ACTION)
.putExtra(CONVERSATION_LABEL, label);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.