How can I get another scene after reopen minimized app?

I need to get lock scene when I reopen minimized app without seeing previous.

I set the function which navigate to lock scene and call it if AppState changed to non-active

But when I reopen app, firstly I see previous scene and then transition to lock scene.