Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c479f5a authored by George Mount's avatar George Mount
Browse files

Use empty snapshots list when there are no shared elements.

Bug 17964119

Change-Id: Ia2a63e52623d1e4238b0fd4e25d565451e856834
parent f23b29ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -543,10 +543,10 @@ abstract class ActivityTransitionCoordinator extends ResultReceiver {

    protected ArrayList<View> createSnapshots(Bundle state, Collection<String> names) {
        int numSharedElements = names.size();
        ArrayList<View> snapshots = new ArrayList<View>(numSharedElements);
        if (numSharedElements == 0) {
            return null;
            return snapshots;
        }
        ArrayList<View> snapshots = new ArrayList<View>(numSharedElements);
        Context context = getWindow().getContext();
        int[] decorLoc = new int[2];
        ViewGroup decorView = getDecor();