-
-
Save hitherejoe/8548270a99fcc88666e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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