Skip to content

Instantly share code, notes, and snippets.

@andremion
Created July 18, 2017 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andremion/86acf1760a6390041b5c9470ff9c1df3 to your computer and use it in GitHub Desktop.
Save andremion/86acf1760a6390041b5c9470ff9c1df3 to your computer and use it in GitHub Desktop.
@Override
public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {
if (!mSharedElementViews.isEmpty()) {
removeObsoleteElements(names, sharedElements, mapObsoleteElements(names));
for (View sharedElementView : mSharedElementViews) {
String transitionName = ViewCompat.getTransitionName(sharedElementView);
names.add(transitionName);
sharedElements.put(transitionName, sharedElementView);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment