mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Fix BubbleTextView visibility
Change-Id: I176d7c8b77f6c2d929217c3f9b4dbc3e942e48fc
This commit is contained in:
@@ -345,7 +345,7 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
public void onVisibilityAggregated(boolean isVisible) {
|
||||
super.onVisibilityAggregated(isVisible);
|
||||
if (mIcon != null) {
|
||||
mIcon.setVisible(getWindowVisibility() == VISIBLE && isShown(), false);
|
||||
mIcon.setVisible(isVisible, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -581,6 +581,9 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
applyCompoundDrawables(icon);
|
||||
}
|
||||
mIcon = icon;
|
||||
if (mIcon != null) {
|
||||
mIcon.setVisible(getWindowVisibility() == VISIBLE && isShown(), false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconVisible(boolean visible) {
|
||||
|
||||
Reference in New Issue
Block a user