[TIMOB-15207] Android: ActivityIndicator shows when it is added to the window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-17T19:47:50.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 19, 2013 Sprint 19 API, Release 3.2.0 |
Components | Android |
Labels | module_activityindicator, qe-testadded, regression |
Reporter | Ping Wang |
Assignee | Ping Wang |
Created | 2013-09-16T22:40:10.000+0000 |
Updated | 2014-06-19T12:43:43.000+0000 |
Description
Our doc says that "Note that, unlike most views, the activity indicator is hidden by default and must be shown explicitly."
To reproduce, run the test case below:
var win = Ti.UI.createWindow({
fullscreen: false,
backgroundColor: 'yellow'
});
var actInd = Ti.UI.createActivityIndicator({style:Ti.UI.ActivityIndicatorStyle.BIG});
win.add(actInd);
var b = Ti.UI.createButton({
top: 10,
title: "show activity indicator"
});
b.addEventListener("click", function(){
actInd.show();
});
win.add(b);
var b2 = Ti.UI.createButton({
top: 120,
title: "hide activity indicator"
});
b2.addEventListener("click", function(){
actInd.hide();
});
win.add(b2);
win.open();
Expected behavior: when the app launches, the activity indicator should not show.
Actual behavior: when the app launches, the activity indicator shows.
This issue does not happen on 3.1.2.GA or 3.1.3.
This is a regression caused by TIMOB-9572. PR: https://github.com/appcelerator/titanium_mobile/pull/4700
Verified the fix with: Appc-Studio: 3.2.0.201310092427 Sdk:3.2.0.v20131009134844 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Google Nexus 7(v4.3),ipodTouch1(v7.0) Xcode: 5 Activity Indicator is shown on window on calling show().It does not appears by default. Working according to documentation.