Fixed
Status Update
Comments
il...@google.com <il...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit c40b886cbf99590325f7ddfd7109e55a76be5c1a
Author: Jeremy Woods <jbwoods@google.com>
Date: Fri Jan 15 18:44:59 2021
Fix visual artifacts when using hide
When doing a hide operation, because the fragment view is not destroyed
at the end, we cannot put an animation in an AnimationSet or we will
get a visual artifact.
We need to treat hide operations with animation the same way we treat
adding fragment with animations. We start the animation and then
immediately complete the special effect.
RelNote: "Fixed issue where doing a hide operation with an Animation
would cause the hiding fragment to flash at the end of the animation."
Test: tested in sample app
Bug: 175417675
Change-Id: I57e2282d6c16dcbb403379d67c5e747379db58b1
M fragment/fragment/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java
https://android-review.googlesource.com/1553355
Branch: androidx-main
commit c40b886cbf99590325f7ddfd7109e55a76be5c1a
Author: Jeremy Woods <jbwoods@google.com>
Date: Fri Jan 15 18:44:59 2021
Fix visual artifacts when using hide
When doing a hide operation, because the fragment view is not destroyed
at the end, we cannot put an animation in an AnimationSet or we will
get a visual artifact.
We need to treat hide operations with animation the same way we treat
adding fragment with animations. We start the animation and then
immediately complete the special effect.
RelNote: "Fixed issue where doing a hide operation with an Animation
would cause the hiding fragment to flash at the end of the animation."
Test: tested in sample app
Bug: 175417675
Change-Id: I57e2282d6c16dcbb403379d67c5e747379db58b1
M fragment/fragment/src/main/java/androidx/fragment/app/DefaultSpecialEffectsController.java
jb...@google.com <jb...@google.com> #3
This has been fixed internally and will be available in the Fragment 1.3.0-rc02
release.
jp...@gmail.com <jp...@gmail.com> #4
Thank you for taking a look into this issue.
Description
Components used: Fragment, AppCompat
Fragment version used: 1.3.0-beta02
AppCompat version used: 1.3.0-alpha02
Devices/Android versions reproduced on: API 28 (device), API 30 (emulator)
The following code is resulting in animation flickering:
This seems like a regression, as using
Fragment 1.2.5
andAppCompat 1.2.0
works as expected.This bug can be reproduced in the following test project and is only noticeable when fading from
fragment2
tofragment1
:A screen record of the issue is also attached.
Thank you for taking a look into this issue.