diff options
Diffstat (limited to 'src/android')
| -rw-r--r-- | src/android/app/src/main/jni/emu_window/emu_window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/android/app/src/main/jni/emu_window/emu_window.cpp b/src/android/app/src/main/jni/emu_window/emu_window.cpp index c4f631924..c927cddda 100644 --- a/src/android/app/src/main/jni/emu_window/emu_window.cpp +++ b/src/android/app/src/main/jni/emu_window/emu_window.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include <android/native_window_jni.h> | 4 | #include <android/native_window_jni.h> |
| 5 | 5 | ||
| 6 | #include "common/android/id_cache.h" | ||
| 6 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 7 | #include "input_common/drivers/touch_screen.h" | 8 | #include "input_common/drivers/touch_screen.h" |
| 8 | #include "input_common/drivers/virtual_amiibo.h" | 9 | #include "input_common/drivers/virtual_amiibo.h" |
| @@ -60,7 +61,8 @@ void EmuWindow_Android::OnRemoveNfcTag() { | |||
| 60 | 61 | ||
| 61 | void EmuWindow_Android::OnFrameDisplayed() { | 62 | void EmuWindow_Android::OnFrameDisplayed() { |
| 62 | if (!m_first_frame) { | 63 | if (!m_first_frame) { |
| 63 | EmulationSession::GetInstance().OnEmulationStarted(); | 64 | Common::Android::RunJNIOnFiber<void>( |
| 65 | [&](JNIEnv* env) { EmulationSession::GetInstance().OnEmulationStarted(); }); | ||
| 64 | m_first_frame = true; | 66 | m_first_frame = true; |
| 65 | } | 67 | } |
| 66 | } | 68 | } |