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

[release/7.0.2xx] [net7.0] Cache the dynamic AppTheme value in Controls (and not Essentials) (#11200) #14072

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Backport of #13963 to release/7.0.2xx

/cc @rmarinho @mattleibow

…1200)

Previously, the RequestedAppTheme and RequestedLayoutDiection values were cached on first access and this was incorrect as they can change at runtime - both by the OS and the user.

This PR makes a few changes:

Don't cache the theme and layout in Essentials as there is no way to update the cache
Don't cache the layout anywhere because this is only accessed once when the window is [re]created
Cache the theme in the Controls Application where the events can actually handle.

---------

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
# Conflicts:
#	src/Essentials/src/AppInfo/AppInfo.android.cs
@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mattleibow mattleibow merged commit 824e533 into release/7.0.2xx Mar 20, 2023
@mattleibow mattleibow deleted the backport/pr-13963-to-release/7.0.2xx branch March 20, 2023 18:18
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants