Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.4-beta1.mono] Android app closes down on right-swipe if built with Gradle #101985

Open
keendra opened this issue Jan 24, 2025 · 7 comments · May be fixed by #101996
Open

[4.4-beta1.mono] Android app closes down on right-swipe if built with Gradle #101985

keendra opened this issue Jan 24, 2025 · 7 comments · May be fixed by #101996

Comments

@keendra
Copy link

keendra commented Jan 24, 2025

Tested versions

This issue cccur in: 4.4-beta1.mono Gradle Android build
This issue does not occur in:

  • Godot 4.3 Gradle/Non-Gradle
  • Godot 4.4-beta1.mono Non-Gradle build

System information

Godot v4.4.beta1.mono - Windows 10 (build 19045) - Multi-window, 1 monitor - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1060 6GB (NVIDIA; 32.0.15.6094) - Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 threads)

Issue description

There's an inconsistency between building with or without Gradle since upgrading to Godot 4.4 beta 1 mono, in that if I build the app with gradle and drag my finger left to right in the app, it drags the window and closes it. This is not the case if I build without gradle.

89be5507-2862-428b-80f6-cee851bfd628.mp4

Expected behavior:
I don't know if the desired behaviour is that this should be happening or not, but it should be consistent whether you build with gradle or not.

Actual behavior:
It's not consistent whether you're building with gradle or not.

Steps to reproduce

  1. Create a new project using Godot 4.4-beta1.mono
  2. Install the templates needed to build for Android
  3. Export a project with Gradle.
  4. Run the APK/ABB on Android.
  5. Swipe right anywhere on the screen.

Observe the app sliding as if the system is interpreting the gesture for closing.

Minimal reproduction project (MRP)

test-game-project.zip

@keendra
Copy link
Author

keendra commented Jan 24, 2025

If this is a new, desired behaviour I'd like to know the best practice to disable it. I have a selection wheel so I certainly do not want the app to close down when it's swiped right.

@syntaxerror247
Copy link
Member

Could you please let me know which Android device you are using?

@keendra
Copy link
Author

keendra commented Jan 24, 2025

Could you please let me know which Android device you are using?

Yes Huawei P20, also tested on Samsung Galaxy S8 where this occur as well.

Tested on Galaxy Tab S9 where it apparently does not close down

@syntaxerror247 syntaxerror247 moved this from For team assessment to Fix pending review in Platforms Issue Triage Jan 24, 2025
@syntaxerror247
Copy link
Member

syntaxerror247 commented Jan 24, 2025

Let me know if this PR fixes your issue. You can test it by using the editor from its Actions artifects.

@keendra
Copy link
Author

keendra commented Jan 24, 2025

Let me know if this PR fixes your issue. You can test it by using the editor from its Actions artifects.

Thank you for looking into it so quickly. I have the editor from the artifacts but I don't understand how to get the template for this version, if I try to get windows-template from the artifacts it results in error and if I use the one for beta1 it won't recognize it as this version only says beta

Image

@syntaxerror247
Copy link
Member

I have the editor from the artifacts but I don't understand how to get the template for this version, if I try to get windows-template from the artifacts it results in error and if I use the one for beta1 it won't recognize it as this version only says beta

You need to download the android-template-arm64, which contains an android_source.zip. When installing the Android build template, select Install from file.

Since I haven't made any changes to the template itself, you can also use the beta1 version and simply update the text in [Your Project]/android/.build_version to "4.4.dev".

@keendra
Copy link
Author

keendra commented Jan 24, 2025

I have the editor from the artifacts but I don't understand how to get the template for this version, if I try to get windows-template from the artifacts it results in error and if I use the one for beta1 it won't recognize it as this version only says beta

You need to download the android-template-arm64, which contains an android_source.zip. When installing the Android build template, select Install from file.

Since I haven't made any changes to the template itself, you can also use the beta1 version and simply update the text in [Your Project]/android/.build_version to "4.4.dev".

Great, thank you! The issue does not occur when exported using the editor from your build, so it fixes the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Immediate Blocker
Status: Fix pending review
Development

Successfully merging a pull request may close this issue.

3 participants