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

[BUG] Fails to load the animation after the resource dictionary is switched #284

Closed
kycuff opened this issue Jul 18, 2024 · 0 comments · Fixed by #285
Closed

[BUG] Fails to load the animation after the resource dictionary is switched #284

kycuff opened this issue Jul 18, 2024 · 0 comments · Fixed by #285
Labels

Comments

@kycuff
Copy link

kycuff commented Jul 18, 2024

Description

After switching theme with .Net Maui causes the animation to no longer work but after an app restart it works.

Where the lottie animation should render there is just a blank space but there are no errors or no crashes.

IOS appears to be ok and it is just Android with the issue.

Code
All the code does is switch out the ResourceDictionary that is used.

Application.Current!.Resources = themeSwitch.IsToggled ? new DarkTheme() : new LightTheme();

Expected Behavior

Would still expect the lottie animation to play after changing the theme.

Actual Behavior

Where the lottie animation should render there is just a blank space but there are no errors or no crashes.

Basic Information

  • Version with issue: 2.0.0
  • Last known good version: unknown
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • Android: 13
    • iOS: 17.5
  • Target Devices:
    • Device Samsung Galaxy S20
    • Device iPhone 11 Pro

Reproduction Link

https://github.com/kycuff/LottieIssueApp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant