Skip to content

Commit

Permalink
Android: Fix crash when the native settings open while a transition i…
Browse files Browse the repository at this point in the history
…s active
  • Loading branch information
Ghabry committed Jan 3, 2025
1 parent 6b33098 commit b77dd94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ JNIEXPORT void JNICALL Java_org_easyrpg_player_player_EasyRpgPlayerActivity_togg
JNIEXPORT void JNICALL
Java_org_easyrpg_player_player_EasyRpgPlayerActivity_openSettings(JNIEnv *, jclass) {
EpAndroid::schedule([]() {
if (Scene::instance->type != Scene::Logo && !Scene::Find(Scene::Settings)) {
if (Scene::instance->type != Scene::Logo && !Scene::Find(Scene::Settings) && !Scene::IsAsyncPending()) {
Scene::Push(std::make_shared<Scene_Settings>());
}
});
Expand Down

0 comments on commit b77dd94

Please sign in to comment.