Skip to content

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

Merged
mattleibow merged 1 commit intorelease/7.0.2xxfrom
backport/pr-13963-to-release/7.0.2xx
Mar 20, 2023
Merged

[release/7.0.2xx] [net7.0] Cache the dynamic AppTheme value in Controls (and not Essentials) (#11200)#14072
mattleibow merged 1 commit intorelease/7.0.2xxfrom
backport/pr-13963-to-release/7.0.2xx

Conversation

@github-actions
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
@samhouts samhouts added the fixed-in-7.0.81 Look for this fix in 7.0.81! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-7.0.81 Look for this fix in 7.0.81! t/housekeeping ♻︎

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants