From 867a86613d4152a93423300f83597300e6ebeebe Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Mon, 3 Jun 2013 07:30:21 -0700 Subject: Various fixes/cleanup in Scenes and Transitions setDuration() wasn't handled correctly for TransitionGroup; it should propagate the value to its children. Also, videos with no ids were not being handled correctly. The transition code was using the default id on those views (-1) to store start/end data about the view, causing multiple non-id views to clobber values in the hashmaps. The correct approach should be to ignore default id values - only store information about the view instances, not about the unset ids. Also, added a new test InterruptTest to be used to fix the current behavior of not handling situations where new transitions start while old ones are still taking place. Change-Id: I4e880bdbb33cc26d487bceb0d56e463e72f7621f --- tests/TransitionTests/AndroidManifest.xml | 7 ++ tests/TransitionTests/res/layout/interruption.xml | 45 +++++++++++++ .../res/layout/interruption_inner_1.xml | 13 ++++ .../res/layout/interruption_inner_2.xml | 13 ++++ .../res/layout/interruption_inner_3.xml | 13 ++++ .../res/layout/interruption_inner_4.xml | 13 ++++ tests/TransitionTests/res/values/strings.xml | 4 ++ .../com/android/transitiontests/ChangingText.java | 2 - .../android/transitiontests/InterruptionTest.java | 74 ++++++++++++++++++++++ 9 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 tests/TransitionTests/res/layout/interruption.xml create mode 100644 tests/TransitionTests/res/layout/interruption_inner_1.xml create mode 100644 tests/TransitionTests/res/layout/interruption_inner_2.xml create mode 100644 tests/TransitionTests/res/layout/interruption_inner_3.xml create mode 100644 tests/TransitionTests/res/layout/interruption_inner_4.xml create mode 100644 tests/TransitionTests/src/com/android/transitiontests/InterruptionTest.java (limited to 'tests/TransitionTests') diff --git a/tests/TransitionTests/AndroidManifest.xml b/tests/TransitionTests/AndroidManifest.xml index 8cd36bf..be6b145 100644 --- a/tests/TransitionTests/AndroidManifest.xml +++ b/tests/TransitionTests/AndroidManifest.xml @@ -205,6 +205,13 @@ + + + + + + diff --git a/tests/TransitionTests/res/layout/interruption.xml b/tests/TransitionTests/res/layout/interruption.xml new file mode 100644 index 0000000..9fdb27a --- /dev/null +++ b/tests/TransitionTests/res/layout/interruption.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tests/TransitionTests/res/layout/interruption_inner_1.xml b/tests/TransitionTests/res/layout/interruption_inner_1.xml new file mode 100644 index 0000000..990a7fd --- /dev/null +++ b/tests/TransitionTests/res/layout/interruption_inner_1.xml @@ -0,0 +1,13 @@ + +