From 44ea386a8eb0ccfd874dffee02924361a4e67ce8 Mon Sep 17 00:00:00 2001 From: Amin Shaikh Date: Mon, 8 Apr 2019 16:17:46 -0400 Subject: [PATCH] Fix StatusBarWifiView applying the wrong wifi icon This was introduced in ag/6935095. Fixes: 130164218 Test: mp sysuig; toggle wifi on and off Change-Id: I8b945d777bc6f410943494c98c83cd89766c1e4d --- .../src/com/android/systemui/statusbar/StatusBarWifiView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarWifiView.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarWifiView.java index f1877f44a595..b55e200ddb7c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarWifiView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBarWifiView.java @@ -224,7 +224,7 @@ public void applyWifiState(WifiIconState state) { private void updateState(WifiIconState state) { setContentDescription(state.contentDescription); if (mState.resId != state.resId && state.resId >= 0) { - mWifiIcon.setImageDrawable(mContext.getDrawable(mState.resId)); + mWifiIcon.setImageDrawable(mContext.getDrawable(state.resId)); } mInoutContainer.setVisibility(mShowWifiActivity && state.visible ? View.VISIBLE : View.GONE);