Skip to content

Compose and backPressedHandler interfere with first touch event #830

Open
@rjrjr

Description

@rjrjr

https://workflow-community.slack.com/archives/CHTFPR277/p1657276987100999

Noticing a really strange issue with BackStackScreen and Compose – given there is BackButtonScreen or BackHandler/backPressedHandler in the stack and I press back button, the UI seems to block the first touch event
Not really sure if it's the best explanation, but a button gets pressed only works on a second tap, same with lists, etc

Did some more investigation, and I'm not seeing this issue when

  • using BackStackScreen as root rendering via WorkflowLayout
  • replacing BackStackScreen with a custom View-based Screen (Compose -> View -> Compose)
    So looks like this is really specific to Compose -> BackStackScreen -> Compose :thinking_face:

Same on both 1.7.1 and 1.8.0-beta04

@vgonda> Hmmmm. I wonder if we should be calling composeView.setBackHandler somewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    uiRelated to UI integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions