Use proper method to clear notification actions

This commit is contained in:
arkon
2021-01-21 18:21:21 -05:00
parent db2dd4b6c6
commit cf7ec6aa76
3 changed files with 4 additions and 21 deletions
@@ -66,15 +66,6 @@ internal class DownloadNotifier(private val context: Context) {
context.notificationManager.notify(id, build())
}
/**
* Clear old actions if they exist.
*/
private fun NotificationCompat.Builder.clearActions() {
if (mActions.isNotEmpty()) {
mActions.clear()
}
}
/**
* Dismiss the downloader's notification. Downloader error notifications use a different id, so
* those can only be dismissed by the user.