Skip to content

Comments

fix(widget): ensure Android home widget updates data and handle unsup…#217

Merged
Leonavichus merged 1 commit intodarkmoonight:mainfrom
Klsvvv2:main
Nov 16, 2025
Merged

fix(widget): ensure Android home widget updates data and handle unsup…#217
Leonavichus merged 1 commit intodarkmoonight:mainfrom
Klsvvv2:main

Conversation

@Klsvvv2
Copy link
Contributor

@Klsvvv2 Klsvvv2 commented Nov 16, 2025

Call updateWidget() after reading cached weather on Android so the home screen widget immediately shows the current temperature and icon instead of only the date.
Wrap the “Add widget” setting in isRequestPinWidgetSupported() and show the addWidgetLauncher snackbar on launchers that don’t support pinning widgets (e.g. some GrapheneOS setups), avoiding silent failures. No changes to layouts or existing comments; only widget update logic and settings behavior were adjusted.

…ported pinning

Call
updateWidget()
 after reading cached weather on Android so the home screen widget immediately shows the current temperature and icon instead of only the date.
Wrap the “Add widget” setting in isRequestPinWidgetSupported() and show the addWidgetLauncher snackbar on launchers that don’t support pinning widgets (e.g. some GrapheneOS setups), avoiding silent failures.
No changes to layouts or existing comments; only widget update logic and settings behavior were adjusted.
@Leonavichus
Copy link
Member

Thank you for the improvements.

@Leonavichus Leonavichus merged commit f0956b2 into darkmoonight:main Nov 16, 2025
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.

2 participants