From cb810f1a97a0910609ba09eda27fba1f03be4127 Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 23 Aug 2019 13:29:12 -0400 Subject: [PATCH] android: native: Reset old EmuWindow before constructing a new one. - Enforces that touch is unregistered at the right time, ensuring it works for subsequent runs. --- src/android/app/src/main/jni/native.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index 30620246f..f32c73e55 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp @@ -97,6 +97,7 @@ static int RunCitra(const std::string& filepath) { if (window) { system.Shutdown(); InputManager::Shutdown(); + window.reset(); } {