Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12751] Android: Animation - Screen gets freeze when object is tapped second time for animation

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-01T18:08:30.000+0000
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sRelease 3.2.0
ComponentsAndroid
Labelsmodule_animation, qe-3.0.2, qe-testadded
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2013-02-15T11:24:10.000+0000
Updated2014-06-19T12:42:49.000+0000

Description

Screen gets freeze when object is tapped second time for animation. This is not regression since the issue occurs in 3.0.0GA as well. Steps to reproduce: 1. Create an app using the code below. 2. Tap on the green box and let the animation get finished. 3. Tap on the green box again. Actual: The box does not animate. Instead, it gets hanged. Expected: Animation should work properly any number of times.
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});

var view1 = Ti.UI.createView({
		    backgroundColor:'green',
		    top: 10,
		    opacity:'1',
		    width:100,
		    height:100
		});
		var label1 = Ti.UI.createLabel({
			top:60,
			text:'Background text'
		});
		
		view1.addEventListener('click', function() {
		    view1.animate({
		        autoreverse:true,
		        duration: 2000,
		        repeat:2,
		        backgroundColor:'blue',
		        opacity:'0.1',
		        //opaque:false,
		    })
		});
		win1.add(label1);
		win1.add(view1);

win1.open();

Comments

  1. Shameer Jan 2013-03-08

    The problem reproduces with release 3.0.2 and master release 3.1.0 tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 iOS iPhone Simulator: iOS SDK version: 6.0 It works fine on IOS iphone simulator
  2. Allen Yeung 2013-08-01

    Resolved in 3.2.0
  3. Anshu Mittal 2013-10-11

    Verified fix with: Appc-Studio: 3.2.0.201310100354 Sdk:3.2.0.v20131010163242 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:htc desire(4.1), iPhone5(7.0.2) Xcode: 5 Screen does not freeze when object is tapped second time.

JSON Source