Do not animate icon if work profile is disabled
Bug: 119884907 Change-Id: I14977581dcb42b5fb2fe21f628a4d91945fdd614
This commit is contained in:
@@ -341,6 +341,14 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
refreshDrawableState();
|
||||
}
|
||||
|
||||
@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
|
||||
|
||||
Reference in New Issue
Block a user