[TIMOB-17287] Advance Sample - inheritance: Animated dialog does not appears on clicking animatedDialog button
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-11T19:22:24.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.3.0, Release 3.4.0 |
Components | n/a |
Labels | alloy, qe-3.3.0, qe-closed-3.3.0, qe-testadded, regression |
Reporter | Neha Mittal |
Assignee | Vishal Duggal |
Created | 2014-07-09T07:13:54.000+0000 |
Updated | 2014-07-15T10:08:33.000+0000 |
Description
This is a regression since it works fine on 3.2.3 GA.
On clicking "animatedDialog" button, Dialog with animation does not appears and app crashes.
Steps to Reproduce:
1. Copy 'apps/advanced/inheritance' content into an existing project 'app' folder.
2. Build the app on android device.
3. Click on animatedDialog button.
Actual Result: No dialog box appears with animation and app crashes.
Expected Result: Dialog with animation should appears, displaying the 'Opened animatedDialog' text.
Note: It is working fine on iOS.
This sounds like not an Alloy issue to me, but rather an Android animation one. Unless the sample is wrong?
This sample fails for me with Alloy 1.3.1 as well as 1.4.0-rc4 and 1.5.0-dev if I use SDK 3.3.0.x. However, if I use SDK 3.2.3.GA, the sample works properly for me under both Alloy 1.4.0-rc4 and 1.5.0-dev. This doesn't seem to be an Alloy issue.
Okay, thanks. Do you know if you can easily create a classic example that demonstrates the same problem?
[~hpham] Here's the ticket to review.
Drop this into a new classic project:
Works on iOS, fails on Android. It's as if the dialog view isn't being drawn on the screen. I tried setting explicit top/left and width properties, but that didn't work. Perhaps it's still transparent (opacity=0) after the animation??
Opacity animation has never worked on views with borders on Honeycomb+ devices before. This bug is exposed by this PR: https://github.com/appcelerator/titanium_mobile/pull/5064. If you run the test case above on 3.2.3.GA, you will not see the border around the dialog.
[~pwang] or [~ayeung] are you able to review this?
Additional test case
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/5904
Backport to 3_3_X https://github.com/appcelerator/titanium_mobile/pull/5907
{color:green} Verified the fix using build:{color} || *Component* || *Version*|| |OS | Windows 8.1, OSX 10.9.3 | |Xcode | 5.1.1 | |Appcelerator Studio | 3.3.0.201407111535 | |SDK | 3.3.0.v20140711123603 | |acs | 1.0.15 | |alloy | 1.4.0-rc5 | |npm | 1.3.2 | |titanium | 3.3.0-rc4 | |titanium-code-processor | 1.1.1 | Device: Nexus 5 (4.4.4) *Animated dialog appears successfully on clicking animatedDialog button.*