fix ArrayIndexOutOfBoundException of ExitTransitionCoordinator

b/16575308

Change-Id: Ieb4f15a8ead7da9682c97d4d342cd77e0b85e5f8
This commit is contained in:
Dake Gu
2014-07-25 15:36:23 -07:00
parent 5438e4e173
commit f03c139018

View File

@@ -549,7 +549,7 @@ abstract class ActivityTransitionCoordinator extends ResultReceiver {
Bundle bundle = new Bundle();
RectF tempBounds = new RectF();
Matrix tempMatrix = new Matrix();
for (int i = 0; i < mSharedElementNames.size(); i++) {
for (int i = 0; i < mSharedElements.size(); i++) {
View sharedElement = mSharedElements.get(i);
String name = mSharedElementNames.get(i);
captureSharedElementState(sharedElement, name, bundle, tempMatrix, tempBounds);