Shared element transition leaves a strange white background between first activity and second transparent activity : <p>Recently I faced up with a weird problem.
I have two activities. The first one contains a grid with a thumbnails. A kind of a gallery. And the second one contains a view pager with fragments and behaves like an image viewer where you can slide between images. 
I use a shared element transition to start the second activity. Just like Google Photo app. On the second activity I can swipe to top or bottom to dismiss the activity with a fade away transition of the background. I made my second activity fully transparent: </p>

<pre><code>&lt;item name="android:windowBackground"&gt;@color/palette_transparent&lt;/item&gt;
&lt;item name="android:colorBackgroundCacheHint"&gt;@null&lt;/item&gt;
&lt;item name="android:windowIsTranslucent"&gt;true&lt;/item&gt;
&lt;item name="android:windowAnimationStyle"&gt;@android:style/Animation&lt;/item&gt;
</code></pre>

<p>But the problem is when I swipe an image to top/bottom and the second activity's background fades I can see a white background but not the first activity. If I start the second activity without shared element transition everything is fine. </p>

<p>I made a research and found out that this white layer probably overlays the first activity. It is not a part of the second activity as I can see in Stetho view hierarchy. </p>

<p>Probably my explanation is not very good neither my English language so here a couple of videos too clarify my problem.</p>

<p>Video <a href="https://www.youtube.com/watch?v=VSfa9TgpHCk" rel="noreferrer">Without transition</a> and Video <a href="https://www.youtube.com/watch?v=RACj8tgTMqI" rel="noreferrer">With transition</a></p>
