mirror of
https://github.com/Michatec/Radio.git
synced 2026-06-05 03:12:15 +02:00
feat(notification): support custom notification IDs
Update `NotificationSys.showNotification` to accept an optional `id` parameter. This allows different notifications to be displayed simultaneously by the system instead of overwriting each other. In `SettingsFragment` and `PlayerFragment`, assign specific unique IDs for test, share, and update notifications.
This commit is contained in:
@@ -885,7 +885,8 @@ class PlayerFragment : Fragment(),
|
||||
requireContext(),
|
||||
"${getString(R.string.app_name)} $latestVersion",
|
||||
getString(R.string.snackbar_update_available),
|
||||
intent = updateIntent
|
||||
intent = updateIntent,
|
||||
id = 1001
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user