Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 23, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/8548270a99fcc88666e6 to your computer and use it in GitHub Desktop.
Save hitherejoe/8548270a99fcc88666e6 to your computer and use it in GitHub Desktop.
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