summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2019-01-03 01:02:43 -0800
committerHyunyoung Song <hyunyoungs@google.com>2019-01-03 17:23:43 -0800
commitef468d80d8173d3b869b2b54a157396d3ea33c12 (patch)
tree181cab4d3df2fec5eee83be535b30a8972c1cc22 /src/com/android/launcher3/BubbleTextView.java
parentefb8b836660bd367744c406b1a3ce7f20561e000 (diff)
downloadandroid_packages_apps_Trebuchet-ef468d80d8173d3b869b2b54a157396d3ea33c12.tar.gz
android_packages_apps_Trebuchet-ef468d80d8173d3b869b2b54a157396d3ea33c12.tar.bz2
android_packages_apps_Trebuchet-ef468d80d8173d3b869b2b54a157396d3ea33c12.zip
Do not animate icon if work profile is disabled
Bug: 119884907 Change-Id: I14977581dcb42b5fb2fe21f628a4d91945fdd614
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index 4853a907a..891ad9f1c 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -342,6 +342,14 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
}
@Override
+ public void onVisibilityAggregated(boolean isVisible) {
+ super.onVisibilityAggregated(isVisible);
+ if (mIcon != null) {
+ mIcon.setVisible(getWindowVisibility() == VISIBLE && isShown(), false);
+ }
+ }
+
+ @Override
public void onLauncherResume() {
// Reset the pressed state of icon that was locked in the press state while activity
// was launching