Fix NPE when shared elements are empty.
Bug 15608384 Change-Id: Id7ae383873d8d09b51d9c680942076a3a8ffea5b
This commit is contained in:
@@ -133,8 +133,10 @@ class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
|
||||
public void onTransitionEnd(Transition transition) {
|
||||
setViewVisibility(mSharedElements, View.INVISIBLE);
|
||||
ViewGroupOverlay overlay = getDecor().getOverlay();
|
||||
for (int i = 0; i < mSharedElementSnapshots.size(); i++) {
|
||||
overlay.add(mSharedElementSnapshots.get(i));
|
||||
if (mSharedElementSnapshots != null) {
|
||||
for (int i = 0; i < mSharedElementSnapshots.size(); i++) {
|
||||
overlay.add(mSharedElementSnapshots.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user