From d39037f684cdc0051bfa6fb05332320c36cff583 Mon Sep 17 00:00:00 2001 From: Weijie Wang Date: Fri, 4 Mar 2022 10:49:19 +0800 Subject: [PATCH] SystemUI: Fix signal bar icon overlay issue If the signal bar visible state is STATE_DOT, it should be shown a dot instead of signal bar icons. But the signal bar icon will be shown again if the mobile state changed, and then, the dot and signal bar icon are both shown. So don't update signal bar visibility if the state is not STATE_ICON Bugs: 200915946 Test: Manual Change-Id: I7fb04049790f112441511462d3f2963aed42c790 --- .../src/com/android/systemui/statusbar/StatusBarMobileView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java index 68dcdd9ff49fa..7de6a0e5e7cc6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarMobileView.java @@ -186,7 +186,7 @@ public class StatusBarMobileView extends FrameLayout implements DarkReceiver, setContentDescription(state.contentDescription); int newVisibility = state.visible && !mForceHidden ? View.VISIBLE : View.GONE; - if (newVisibility != mMobileGroup.getVisibility()) { + if (newVisibility != mMobileGroup.getVisibility() && STATE_ICON == mVisibleState) { mMobileGroup.setVisibility(newVisibility); needsLayout = true; }