darkmoonight / Rain

🌦️ Weather application
MIT License
582 stars 44 forks source link

Dynamic icon support #124

Closed shatanikmahanty closed 1 month ago

shatanikmahanty commented 8 months ago

Changes app icon based on weather data.

Future enhancements that are work in progress:

saltsoftdrink commented 4 months ago

Changes app icon based on weather data.

Future enhancements that are work in progress:

* [ ]  Figure out a way to change app icon on every weather update cycle rather than only on location change or app open

* [ ]  Optimise change icon call by checking if the current icon is same as the one we are trying to change to

* [ ]  Let users decide if they want this feature through a switch in settings. By default I will keep this false as android restarts app on changing icon

* [ ]  Let users decide if the icon changes on closing app or instantly

Is this PR dead

shatanikmahanty commented 4 months ago

Changes app icon based on weather data.

Future enhancements that are work in progress:

* [ ]  Figure out a way to change app icon on every weather update cycle rather than only on location change or app open

* [ ]  Optimise change icon call by checking if the current icon is same as the one we are trying to change to

* [ ]  Let users decide if they want this feature through a switch in settings. By default I will keep this false as android restarts app on changing icon

* [ ]  Let users decide if the icon changes on closing app or instantly

Is this PR dead

@saltsoftdrink I was having a lot of work pressure for the past months and forgot about this in the meanwhile. I will try to work on this in the coming weekends.

shatanikmahanty commented 3 months ago

Latest update on this.

Converted the PR to draft as I need to test my changes over the next weekend! Also need to plan if I will work on the following point in this PR or in a different PR as without this as well the functionality is solid in my opinion:

shatanikmahanty commented 3 months ago

If anyone wants to review this and test changes in the meanwhile maybe it can be merged earlier than next weekend as well 😁

shatanikmahanty commented 1 month ago

Hey folks here's the latest update on this:

After some testing and research, I found out that changing the app icon through background processes is not possible. So the initial promise of the app supporting dynamic icons throughout the whole day won't be supported. Also, it has limited support on some custom Android OEMs. I think we should close this PR without merging. Sorry if I got your hopes up with this one, but it didn't turn out what I initially thought it to be😔.