@@ -217,11 +217,11 @@ public void onTransitionStart(Transition transition) {
217
217
/**
218
218
* Make the window background transparent during the container transform.
219
219
*
220
- * This applies a color filter to the window background which clears the background's source
221
- * pixels. If the client has set a color filter on the window background manually, this will
222
- * be overridden and will not be restored after the transition. If you need to manipulate
223
- * the color of the window background and have that manipulation restored after the transition,
224
- * use {@link android.graphics.drawable.Drawable#setTint(int)} instead.
220
+ * <p> This applies a color filter to the window background which clears the background's source
221
+ * pixels. If the client has set a color filter on the window background manually, this will be
222
+ * overridden and will not be restored after the transition. If you need to manipulate the color
223
+ * of the window background and have that manipulation restored after the transition, use {@link
224
+ * android.graphics.drawable.Drawable#setTint(int)} instead.
225
225
*/
226
226
private static void removeWindowBackground (Window window ) {
227
227
window
@@ -243,12 +243,11 @@ private static void restoreWindowBackground(Window window) {
243
243
}
244
244
245
245
/**
246
- * When using a transparent window background, make sure that the background fade duration is at
247
- * least as long as the transform's duration. This will help to avoid a black background visual
248
- * artifact.
246
+ * When using a transparent window background, make sure that the background fade duration is as
247
+ * long as the transform's duration. This will help to avoid a black background visual artifact.
249
248
*/
250
249
private static void updateBackgroundFadeDuration (
251
250
Window window , MaterialContainerTransform transform ) {
252
- window .setTransitionBackgroundFadeDuration (transform .getDuration () * 2 );
251
+ window .setTransitionBackgroundFadeDuration (transform .getDuration ());
253
252
}
254
253
}
0 commit comments