summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2019-05-11 20:58:37 -0700
committerJonathan Miranda <jonmiranda@google.com>2019-05-12 18:19:30 +0000
commit5bbc3b7054c93957d05708f57087d11f60f73833 (patch)
tree908bcae6f41422a5cf823bd9518a5fbd105ba828 /src
parentd849ef084c180c393c7f3c69f6f00a01358a644f (diff)
downloadandroid_packages_apps_Trebuchet-5bbc3b7054c93957d05708f57087d11f60f73833.tar.gz
android_packages_apps_Trebuchet-5bbc3b7054c93957d05708f57087d11f60f73833.tar.bz2
android_packages_apps_Trebuchet-5bbc3b7054c93957d05708f57087d11f60f73833.zip
Force hide notification dot until fade animation is complete.
When the animation is complete, the notification dot animates in. Bug: 123900446 Change-Id: Ie98342f2945ac4e42fb810b4334ef03a734ebef2
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/views/FloatingIconView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/views/FloatingIconView.java b/src/com/android/launcher3/views/FloatingIconView.java
index 73f11b22d..cd0ae3d72 100644
--- a/src/com/android/launcher3/views/FloatingIconView.java
+++ b/src/com/android/launcher3/views/FloatingIconView.java
@@ -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);