title: Enter transition on a fragment with a shared element targets the shared element
body: <p>I am using the new Lollipop api to <code>setEnterTransition</code> on a fragment and then add a shared element transition for an image in the fragment. The desired behavior is first, the image should move to its position, after which the rest of the views in the fragment should fade in.</p>
  
  <p>However, the enterTransition is being applied to the shared element so it is fading in with the rest of the views. If I don't set the enterTransition, then the image moves properly but it while it is moving the other content is already visible.</p>
  
  <p>How do I get it to not apply the enterTransition to the shared view?</p>
  
  <p>I found <a href="https://github.com/android/platform_frameworks_base/commit/27bc8aa583b437ec8ae3c13920aeabdb472125e0" rel="noreferrer">this commit in the AOSP</a> that seems like it should address this issue, but it doesn't seem to be working.</p>
  
  <p>Here is sample code:</p>
  
  <pre><code>public class Fragment1 extends Fragment {
  
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.main_fragment, container, false);
      final ImageView imageView = (ImageView) rootView.findViewById(R.id.image);
      final Button button = (Button) rootView.findViewById(R.id.button);
  
      button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
          TransitionSet transitionSet = new TransitionSet();
          transitionSet.addTransition(new ChangeImageTransform());
          transitionSet.addTransition(new ChangeBounds());
          transitionSet.setDuration(300);
  
          Fragment fragment2 = new Fragment2();
          fragment2.setSharedElementEnterTransition(transitionSet);
          fragment2.setSharedElementReturnTransition(transitionSet);
          Fade fade = new Fade();
          fade.setStartDelay(300);
          fragment2.setEnterTransition(fade);
  
          getFragmentManager().beginTransaction()
              .replace(R.id.container, fragment2)
              .addSharedElement(imageView, "SharedImage")
              .commit();
        }
      });
      return rootView;
    }
  }
  </code></pre>