[AC-874] Time Picker value is always current date
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-09-04T07:38:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | api, broken, proxy, time |
Reporter | Lee Driscoll |
Assignee | Mauro Parra-Miranda |
Created | 2014-03-06T20:36:04.000+0000 |
Updated | 2016-03-08T07:37:10.000+0000 |
Description
The
getValue
method always returns the current time. Assumedly, this has been mapped to the android method: TimePicker.getCurrentTime
which only returns the current time.
Attachments
File | Date | Size |
---|---|---|
time-picker-text.tar.gz | 2014-03-18T11:36:27.000+0000 | 5883521 |
Please provide a simple and runnable test case to reproduce this issue.
Resolving this ticket as the reporter has not provided requested information.
Here is the test case:
Thanks for providing the sample test case. I tried to run the code as it is but its throwing errors. Can you please confirm that you had included all the files? It would be helpful if you can zip up your test project and attach to this ticket.
I tried to attach a tar of my project but it's 40-something mb, so I 've just attached my app folder
Also, through putting together the sample project I found another bug. I really don't have time to do a full bug report at the moment but it's damn easy to explain: If a form field tries to acquire focus before it's containing window has been opened the app dies without an error. To test this, remove the focusable="false" flag from the TextField in index.xml (from the attached tar)
Until ALOY-263 is merged, you can't create date/time type pickers in XML. Edit: I guess my comment wasn't directly related to the problem you're facing. But I'll leave it here anyway to let you know that you'll be able to create these pickers in XML soon.
@Tim +1 for creating the pickers via XML, that'll be a great addition
Lee - Can you please provide a test case that does not create date / time picker in XML so that we can troubleshoot your current issue?
Ritu - The attached project works for me.