[Scummvm-git-logs] scummvm master -> dc7a7bbd9475c17d2648a61fc67242d29f510a26
lephilousophe
noreply at scummvm.org
Sat Nov 15 17:29:48 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
dc7a7bbd94 ANDROID: Reset keyboard status at creation
Commit: dc7a7bbd9475c17d2648a61fc67242d29f510a26
https://github.com/scummvm/scummvm/commit/dc7a7bbd9475c17d2648a61fc67242d29f510a26
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-11-15T18:29:15+01:00
Commit Message:
ANDROID: Reset keyboard status at creation
When quitting and restarting the Android application, the process can
get recycled.
In this case, the JNI shared object is never discarded and we start with
a dirty state where the keyboard status is kept from the last run.
Fixes Trac#16337.
Changed paths:
backends/platform/android/android.cpp
backends/platform/android/jni-android.cpp
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index c9e4cf04840..1815776895b 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -185,6 +185,7 @@ OSystem_Android::OSystem_Android(int audio_sample_rate, int audio_buffer_size) :
_audio_sample_rate(audio_sample_rate),
_audio_buffer_size(audio_buffer_size),
_screen_changeid(0),
+ _virtkeybd_on(false),
_mixer(0),
_event_queue_lock(0),
_touch_pt_down(),
diff --git a/backends/platform/android/jni-android.cpp b/backends/platform/android/jni-android.cpp
index d382be3e8e9..86fc6c8f128 100644
--- a/backends/platform/android/jni-android.cpp
+++ b/backends/platform/android/jni-android.cpp
@@ -819,6 +819,8 @@ void JNI::create(JNIEnv *env, jobject self, jobject asset_manager,
// initial value of zero!
sem_init(&pause_sem, 0, 0);
+ virt_keyboard_state = false;
+
_asset_archive = new AndroidAssetArchive(asset_manager);
assert(_asset_archive);
More information about the Scummvm-git-logs
mailing list