Fix bug where FolderIcon is invisible when closing Folder with no animation.

When we open the Folder, we set the FolderIcon to View.INVISIBLE.
It is possible to close the Folder without animating it (ie. when apps
are being auto added / auto closed to Work Profile Folder), and so the
FolderIcon is never set to View.VISIBLE.

Bug: 35064148
Change-Id: I2fc5b7ecaceffde0a3f3875870897c18e6e8dadf
This commit is contained in:
Jon Miranda
2017-03-07 09:28:14 -08:00
parent b9b02337f7
commit ac3a64dbf4
2 changed files with 6 additions and 8 deletions

View File

@@ -135,12 +135,6 @@ public class FolderAnimationManager {
public AnimatorSet getClosingAnimator() {
AnimatorSet a = getAnimatorSet(false /* isOpening */);
a.setInterpolator(mClosingInterpolator);
a.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
mFolderIcon.setVisibility(View.VISIBLE);
}
});
return a;
}