Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Medium
-
Resolution: Fixed
-
Affects Version/s: Release 3.3.0, Release 5.1.0, Release 5.0.0, Release 5.1.1
-
Fix Version/s: Release 7.0.2
-
Component/s: iOS
-
Labels:
-
Environment:
SDK 5.1.1.GA, Xcode 7.1, CLI 5.1.0.
-
Story Points:5
Description
A template in a ListView includes an ActivityIndicator. The first time the activity indicator appears, its spinner works fine but the second and subsequent time it appears, the spinner does not work.
Steps to reproduce:
(1) Create a new Alloy project and drop the three attached files into their usual folders and run the project on an iPhone or iOS Simulator.
(2) Scroll to the bottom. The ActivityIndicator appears as normal for a second, until it's replaced with more ListItems.
(3) Scroll to the bottom again. Now the ActivityIndicator is sans-spinner. Every subsequent scroll will have the same results.
It appears that this is because the ActivityIndicator view is not properly resetting when removed from the ListView. When I set visible=false to the ActivityIndicator before removing it from the view, the spinner works ok. Unfortunately this requires editing a ListView which is an expensive operation. You can see the workaround in action by uncommenting line 95 of the example code.
Note that the word "Loading" (also part of the ActivityIndicator) does appear even though the spinner does not.