[ALOY-1038] Conditionals with negation are not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-05T00:42:14.000+0000 |
Affected Version/s | Alloy 1.4.0 |
Fix Version/s | Alloy 1.4.0 |
Components | Styling, XML |
Labels | qe-3.3.0, qe-testadded, regression |
Reporter | Federico Casali |
Assignee | Tim Poulsen |
Created | 2014-06-03T19:39:38.000+0000 |
Updated | 2014-06-06T21:57:43.000+0000 |
Description
Problem description
On Android, using a conditional with negation is not working on 1.4.0. Works fine using Alloy 1.3.1 so is a regression.Steps to reproduce
The Journal sample app can be used to reproduce the issue. 1. Get the code from: https://github.com/appcelerator/alloy/tree/master/test/apps/models/journal 2. Run on Android. Add an item. Result: when adding an entry a runtime error is displayed (see screenshot). 3. Go to "views/add.xml" and change:
<Picker id="mood" platform="!ios">
to
<Picker id="mood" platform="android">
Run on Android and add an item
Result: item is added as expected.
Basically, using the conditional "!ios" is not working and the picker object was not being correctly created.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2014-06-03 at 12.38.33 PM.png | 2014-06-03T19:39:38.000+0000 | 57814 |