Merge "Force hide notification dot until fade animation is complete." into ub-launcher3-qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-13 17:16:55 +00:00
committed by Android (Google) Code Review
@@ -568,6 +568,17 @@ public class FloatingIconView extends View implements
}
});
if (originalView instanceof BubbleTextView) {
BubbleTextView btv = (BubbleTextView) originalView;
btv.forceHideDot(true);
fade.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
btv.forceHideDot(false);
}
});
}
if (originalView instanceof FolderIcon) {
FolderIcon folderIcon = (FolderIcon) originalView;
folderIcon.setBackgroundVisible(false);