Fade in the FolderIcon stroke after Folder animates closed.

When the Folder animates closed, it hides itself the same
time as the FolderIcon becomes visible. Because the Folder
does not have the white stroke outline, there is a visual
jump between the closed Folder and the FolderIcon.

This change is a subtle and easy step towards reducing
the visual jump.

Bug: 35064148
Change-Id: I8aeeed873e7144499d19f3b01c85bfa8a792097f
This commit is contained in:
Jon Miranda
2017-04-06 14:53:52 -07:00
committed by Jonathan Miranda
parent d9125d84ba
commit bdb5424fae
2 changed files with 34 additions and 1 deletions
@@ -783,6 +783,7 @@ public class Folder extends AbstractFloatingView implements DragSource, View.OnC
if (mFolderIcon != null) {
mFolderIcon.setVisibility(View.VISIBLE);
if (wasAnimated) {
mFolderIcon.mBackground.animateBackgroundStroke();
mFolderIcon.requestFocus();
}
}