Project: titanium
Issue TIMOB-14003: Android: showDatePickerDialog and showTimePickerDialog can't be cancelled
The callback of showDatePickerDialog and showTimePickerDialog always return with the cancel property set to false. It doesn't matter if you press the back button or press outside the modal dialog, cancel gets never true. Furthermore, if you click on the Set/Ok/Done/Ready button, the callback is called twice. Note that in the picker dialog, we have only a single button "Set", so no Cancel button. This is fine as you should be able to cancel dialog with the back button. Clicking the back button fires wrongly a success (cancel=false) event. {code:title=Example code|borderStyle=solid}	var picker = Ti.UI.createPicker( {	type : Ti.UI.PICKER_TYPE_TIME	});	picker.showDatePickerDialog({	callback: function(e) {	if (e.cancel) {	Ti.API.info('user canceled dialog');	} else {	Ti.API.info('user selected date: ' + e.value);	}	}	}); {code} Problem does not occur on older Android devices, like Android 2.3. See https://github.com/markruys/titanium-test-picker for a working project to reproduce.
Story points: 5