[TIMOB-6956] Android: showDatePickerDialog() is broken in 1.8.0.1 v8
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-11T22:29:43.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2012-02, Release 2.0.0, Release 1.8.1 |
Components | Android |
Labels | module_picker, qe-testadded, regression |
Reporter | Pedro Enrique |
Assignee | Opie Cyrus |
Created | 2012-01-02T21:12:52.000+0000 |
Updated | 2013-12-06T10:27:03.000+0000 |
Description
The Problem:
This code works on Ti versions prior ti V8.
var picker = Ti.UI.createPicker();
picker.showDatePickerDialog({
value: new Date(2010,8,1),
callback: function(e) {
if (e.cancel) {
Ti.API.info('user canceled dialog');
} else {
Ti.API.info('user selected date: ' + e.value);
}
}
});
But no I get an error:
Uncaught Error: java.util.HashMap
Full test:
Dialog can still get hidden under HW window but that is a larger behavioral issue beyond the scope of this ticket.
Could this method be documented? https://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker-object It's not present in KitchenSink examples (as far as I can see).
Verified already pulled into master, setting status to fixed
@Ivan I am opening a doc request for this, thanks.
Thanks for that Opie, but one is already opened (see linked issues in this ticket).
Verified fixed with SDK 1.9.0.v20120119131634 on Nexus S (2.3.6) and emulator 2.3.1.
Open to update label
This same issue applies to .showTimePickerDialog()
Anvil test case added. PR Link: https://github.com/appcelerator/titanium_mobile/pull/5078