KieronQuinn / Smartspacer

Smartspacer is a customisable widget for Android, but with a difference: It can upgrade the built in At a Glance on Pixels - without root!
GNU General Public License v3.0
1.94k stars 40 forks source link

[Bug] Notification targets do not update the channel list on their own #22

Closed gaussandhisgun closed 10 months ago

gaussandhisgun commented 10 months ago

Description

So, in Android, applications can add notification channels at any time. Things like Automate and whatnot are using it all the time, actually. Today I wanted to add a new channel from Google Maps to my Maps notification target - but it wasn't there. From what I personally understand, picking an app in a Notification target's settings is the moment when Smartspacer gets its list of notification channels, and this list is never updated beyond that. Which, given the dynamic nature of Android's notification channels, is suboptimal. Maybe make it update every time this View is opened or something?

KieronQuinn commented 10 months ago

The notification channel list is updated every time the configuration for that Target is opened - it's never stored locally. Reloading it on resume would be a bit heavy on the system calls, so if it's not appearing after closing & reopening the screen then the system is not giving the updated list and there's nothing I can do about it unfortunately.