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

Android: closing two windows quickly won't close app #13791

Open
1 task done
m1ga opened this issue Apr 5, 2023 · 0 comments · May be fixed by #13889
Open
1 task done

Android: closing two windows quickly won't close app #13791

m1ga opened this issue Apr 5, 2023 · 0 comments · May be fixed by #13889
Labels
android bug needs triage This issue hasn't been reviewed by maintainers

Comments

@m1ga
Copy link
Contributor

m1ga commented Apr 5, 2023

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

If you have two windows and close the 2nd and then the first one right away it won't close the app but stay at the main activity. If you wait a tiny bit it works.

Expected Behavior

Be able to close the app after normally

Actual behavior

Root activity stays open

Reproducible sample

var win1 = Ti.UI.createWindow({
	backgroundColor: "green"
})
win1.addEventListener("click", function() {
	var win2 = Ti.UI.createWindow({
		backgroundColor: "red"
	})
	win2.open();
})
win1.open();

Steps to reproduce

  • open the app (green window)
  • click to open the second window (red)
  • close the red window and close the green window right away
  • you will see the root activity

Same with a more complex window:

simplescreenrecorder-2023-04-05_11.59.49.mp4

Platform

Android

SDK version you are using

12.1.0

Alloy version you are using

No response

@m1ga m1ga added bug needs triage This issue hasn't been reviewed by maintainers android labels Apr 5, 2023
@m1ga m1ga linked a pull request Jul 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant