title: Android shared element transition only working when leaving an activity not when entering
body: <p>I am using a shared element transition to animate an image view from an activity A to an activity B. 
  I am using the following code for this :</p>
  
  <pre><code>Intent i = new Intent(A.this, B.class);
  Pair&lt;View, String&gt; p1 = Pair.create(v2, "logo");
  ActivityOptionsCompat options = ActivityOptionsCompat.
                       makeSceneTransitionAnimation((Activity) mContext,p1);
  context.startActivity(i, options.toBundle());
  </code></pre>
  
  <p>My theme is :</p>
  
  <pre><code>&lt;style name="AnimationTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
  
          &lt;item name="android:windowContentTransitions"&gt;true&lt;/item&gt;
          &lt;item name="android:windowAllowEnterTransitionOverlap"&gt;true&lt;/item&gt;
          &lt;item name="android:windowAllowReturnTransitionOverlap"&gt;true&lt;/item&gt;
  
      &lt;/style&gt;
  </code></pre>
  
  <p>with "logo" being the transitionName for the image view in both A and B. 
  But I notice that while the image transitions from B->A as expected, the transition from A->B doesn't work and there is simply a fade animation between the two activities. </p>
  
  <p>What am I doing wrong and how do I fix this to make the image animate from A->B as well ?</p>
  
  <p>NOTE : A is an activity with a recycler view of images, each of which opens into a detail activity(B) with the image transitioning between the two activities. </p>
  
  <p>Thanks!</p>