Skip to content

Winit run_return and Android does not get Resumed and Suspended #2706

@Hoodad

Description

@Hoodad

Hi!

I have noticed there are some inconsistencies (or at least it appears so) when running an event loop using run_return compared to run. I have tried creating as small as possible repro example Android Activity Winit Glutin where I have taken a working example and replaced the run with run_return and I cannot get the messages Resumed or Suspended to arrive.

More specifically see this commit diff

I can get the Resumed event to arrive if I don't exit the loop when I get Event::MainEventsCleared, however that is a bit unexpected.

Please let me know if I have missed something important that will make the events appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happened

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions