Fixes to library updates notifer

fix errors notification not being tappable
remove view all button for it
skipped action now says open log instead of view all
This commit is contained in:
Jays2Kings 2022-04-28 12:13:47 -04:00
parent 4a6861b6d3
commit 74cec83e5e

View file

@ -102,12 +102,8 @@ class LibraryUpdateNotifier(private val context: Context) {
context.notificationBuilder(Notifications.CHANNEL_LIBRARY_ERROR) {
setContentTitle(context.getString(R.string.notification_update_error, errorCount))
setContentText(context.getString(R.string.tap_to_see_details))
setContentIntent(NotificationReceiver.openErrorOrSkippedLogPendingActivity(context, uri))
setSmallIcon(R.drawable.ic_tachij2k_notification)
addAction(
R.drawable.nnf_ic_file_folder,
context.getString(R.string.view_all),
NotificationReceiver.openErrorOrSkippedLogPendingActivity(context, uri)
)
}
.build()
)
@ -133,7 +129,7 @@ class LibraryUpdateNotifier(private val context: Context) {
setSmallIcon(R.drawable.ic_tachij2k_notification)
addAction(
R.drawable.ic_help_24dp,
context.getString(R.string.view_all),
context.getString(R.string.open_log),
NotificationReceiver.openErrorOrSkippedLogPendingActivity(context, uri)
)