am ea6f0ae8: Merge "Use empty snapshots list when there are no shared elements." into lmp-mr1-dev
* commit 'ea6f0ae86d62cff88d63b926578c588a956d0512': Use empty snapshots list when there are no shared elements.
This commit is contained in:
@@ -543,10 +543,10 @@ abstract class ActivityTransitionCoordinator extends ResultReceiver {
|
||||
|
||||
protected ArrayList<View> createSnapshots(Bundle state, Collection<String> names) {
|
||||
int numSharedElements = names.size();
|
||||
if (numSharedElements == 0) {
|
||||
return null;
|
||||
}
|
||||
ArrayList<View> snapshots = new ArrayList<View>(numSharedElements);
|
||||
if (numSharedElements == 0) {
|
||||
return snapshots;
|
||||
}
|
||||
Context context = getWindow().getContext();
|
||||
int[] decorLoc = new int[2];
|
||||
ViewGroup decorView = getDecor();
|
||||
|
||||
Reference in New Issue
Block a user