Skip to content

Commit

Permalink
Android: Fix assertion failure when coming back to the app after susp…
Browse files Browse the repository at this point in the history
…ending it using the home gesture
  • Loading branch information
jhasse committed Oct 8, 2024
1 parent af45fc4 commit d7af2fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/android/windowimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ void WindowImpl::terminate() {
if (display) {
display->surface = std::nullopt;
}
touches.clear(); // It seems when we get terminated via the home swipe gesture that we don't
// receive the AMOTION_EVENT_ACTION_UP which would leave a touch in the map and
// result in an assertion failure the next time the user returns to the app and
// touches the screen.
}

void WindowImpl::setRelativeMouseMode(const bool relativeMouseMode) {
Expand Down

0 comments on commit d7af2fd

Please sign in to comment.