When AppState is set from ZApplication.OnLoaded section, its OnLeave section is called before OnStart; it should not.
I also observed that after making some structural changes in a project, running the application (Alt+Enter) executes OnLeave section of the AppState which is not initially activated. This is really strange. However, this behavior seems to be non-deterministic and I cannot always reproduce it. It just sometimes happened.
To reproduce the bug, just run the attached project and watch the trace log -> "AppState1.OnLeave" appears before "AppState1.OnStart". (occasionally "AppState2.OnLeave" appears instead of "AppState1.OnLeave")
App.State.OnLeave is called first
Moderator: Moderators
App.State.OnLeave is called first
- Attachments
-
- test.zgeproj
- testing project
- (1.07 KiB) Downloaded 690 times
I'm afraid I'm still too busy to add built-in Android wallpaper support. Also I suspect the number of users waiting for this feature is too small to warrant the work required (anyone think I'm wrong let me know!). For the time being the recommended way to build wallpapers is to use a standard ZGE Android project and then apply the changes from your wallpaper thread.