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:
parent
80bf47493e
commit
77aaa15082
2 changed files with 3 additions and 5 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue