Description
When dismissing an alert dialog, both the close button and the hardware back button quit the application.
var win = Ti.UI.createWindow({backgroundColor:'white'});
var button = Titanium.UI.createButton({
top: 60,
title: 'Hello',
width: '180',
height: '80',
image: '/KS_nav_ui.png'
});
button.addEventListener('click', function(){
alert('HELLO!');
});
win.add(button);
win.open();
*I am unsure if the app quits or crashes as logging does not seem to work with my machine, I am investigating if this is on every machine or just mine*
Steps To Reproduce
1. Add the above code the the app.js of a Titanium Classic application
2. Build the app to device using
appc run -p windows -T device
or
ti build -p windows -T device
3. Tap the 'Hello' button, due to TIMOB-18979 you can't see it, it's around the top middle in the top third of the screen
4. Tap 'Close' or the hardware back button
Actual Result
The app quits
Expected Result
The app should not quit
https://github.com/appcelerator/titanium_mobile_windows/pull/272
Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 Appc Studio: 4.1.0.201507010234 Dismissing an alert dialog no longer crashes the app Closing ticket