Fix toggling the system's settings for app notification

Do not open the setting for a specific notification channel (Settings.ACTION_CHANNEL_NOTIFICATION_SETTINGS), but the settings for all notifications by the app (Settings.ACTION_APP_NOTIFICATION_SETTINGS)
This commit is contained in:
TobiGr 2021-10-25 13:59:49 +02:00
parent 80bf47493e
commit 77aaa15082
2 changed files with 3 additions and 5 deletions

View file

@ -57,7 +57,7 @@ class NotificationsSettingsFragment : BasePreferenceFragment(), OnSharedPreferen
Snackbar.LENGTH_INDEFINITE
).apply {
setAction(R.string.settings) {
activity?.let { NotificationHelper.openNewPipeSystemNotificationSettings(it) }
NotificationHelper.openNewPipeSystemNotificationSettings(it.context)
}
setActionTextColor(Color.YELLOW)
addCallback(object : Snackbar.Callback() {