Merge "Use Wi-Fi content description in StatusBarWifiView" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
057698e511
@@ -191,6 +191,7 @@ public class StatusBarWifiView extends FrameLayout implements DarkReceiver,
|
||||
}
|
||||
|
||||
private void updateState(WifiIconState state) {
|
||||
setContentDescription(state.contentDescription);
|
||||
if (mState.resId != state.resId && state.resId >= 0) {
|
||||
NeutralGoodDrawable drawable = NeutralGoodDrawable
|
||||
.create(mLightContext, mDarkContext, state.resId);
|
||||
@@ -212,6 +213,7 @@ public class StatusBarWifiView extends FrameLayout implements DarkReceiver,
|
||||
}
|
||||
|
||||
private void initViewState() {
|
||||
setContentDescription(mState.contentDescription);
|
||||
if (mState.resId >= 0) {
|
||||
NeutralGoodDrawable drawable = NeutralGoodDrawable.create(
|
||||
mLightContext, mDarkContext, mState.resId);
|
||||
|
||||
Reference in New Issue
Block a user