Skip to content

Commit

Permalink
android notif [nfc]: Cut disused createDismissAction
Browse files Browse the repository at this point in the history
We stopped using this in eaa8b40.
  • Loading branch information
gnprice committed Nov 9, 2021
1 parent 53e0363 commit dd78104
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,6 @@ private fun createViewPendingIntent(fcmMessage: MessageFcmMessage, context: Cont
return PendingIntent.getService(context, 0, viewIntent, 0)
}

private fun createDismissAction(context: Context): NotificationCompat.Action {
val dismissIntent = Intent(context, NotificationIntentService::class.java)
dismissIntent.action = ACTION_CLEAR
val piDismiss = PendingIntent.getService(context, 0, dismissIntent, 0)
return NotificationCompat.Action(
android.R.drawable.ic_menu_close_clear_cancel,
"Clear",
piDismiss
)
}

/**
* @param context
* @param conversationKey Unique Key identifying a conversation, the current
Expand Down

0 comments on commit dd78104

Please sign in to comment.