ReactiveCommand and UIThread? (ThemeVariant toggle) #56
Unanswered
houstonhaynes
asked this question in
Q&A
Replies: 1 comment
-
Disregard I was making it too hard... member this.SwitchTheme() = switchTheme() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a "new" app that's using an old method from a previous app - so I had pretty high confidence in it working. Basically it's looking at the Application level ThemeVariant and using that to determine the toggle from "Dark" to "Light" and back again.
For some reason I'm getting a complaint that seems to point to the UIThread - at least that's my reflex when I see "call from invalid thread"
I'm at a loss as to what I might be doing wrong here. I'm hoping it might be something you've seen in your travels. Thanks!
Quick Addendum: I also tried changing the "BaseTheme" attribute in the MaterialTheme as they did in their demo app and I get the same error/issue.
Beta Was this translation helpful? Give feedback.
All reactions