OSDN Git Service

fix ArrayIndexOutOfBoundException of ExitTransitionCoordinator
authorDake Gu <dake@google.com>
Fri, 25 Jul 2014 22:36:23 +0000 (15:36 -0700)
committerDake Gu <dake@google.com>
Fri, 25 Jul 2014 23:10:51 +0000 (23:10 +0000)
b/16575308

Change-Id: Ieb4f15a8ead7da9682c97d4d342cd77e0b85e5f8

core/java/android/app/ActivityTransitionCoordinator.java

index ca9fabc..b3046b5 100644 (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);