Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix theme issues in AlertActivity and PollenActivity #1147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

min7-i
Copy link
Contributor

@min7-i min7-i commented Jun 18, 2024

This fixes #1138 by retrieving the weather data for the location to calculate the correct "rise progress" of the sun. Previously it used defaults (sunrise at 6 am, sunset at 6 pm) as a fallback which caused the issue described in #1138.

The PR also fixes an issue with the color of the status bar in the PollenActivity when the location-based day/night mode is enabled. It now uses the same approach as PR #1022.

Tested on devices with Android 9 and 14.

screenshots

Tested with locations where the sun was still up. Location-based day/night mode was enabled and the dark theme was used in the app.

location old new
Beijing alert_1 alert_2
Hamburg pollen_1 pollen_2

Currently, the changes in the AlertActivity can be tested with the location "Oral, Kazakhstan" using WMO as source for alerts.

…sed day/night mode is used

- Fix theme for AlertActivity
- Fix color of status bar for PollenActivity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alerts screen: Theme is applied from 06:00 to 18:00 regardless of sunset time
1 participant