Loading src/com/android/settings/wifi/AccessPoint.java +7 −3 Original line number Diff line number Diff line Loading @@ -271,10 +271,14 @@ class AccessPoint extends Preference { // set the icon (drawable) to that state's drawable. StateListDrawable sld = (StateListDrawable) context.getTheme() .obtainStyledAttributes(wifi_signal_attributes).getDrawable(0); // If sld is null then we are indexing and therefore do not have access to // (nor need to display) the drawable. if (sld != null) { sld.setState((security != SECURITY_NONE) ? STATE_SECURED : STATE_NONE); drawable = sld.getCurrent(); setIcon(drawable); } } if (drawable != null) { drawable.setLevel(level); Loading Loading
src/com/android/settings/wifi/AccessPoint.java +7 −3 Original line number Diff line number Diff line Loading @@ -271,10 +271,14 @@ class AccessPoint extends Preference { // set the icon (drawable) to that state's drawable. StateListDrawable sld = (StateListDrawable) context.getTheme() .obtainStyledAttributes(wifi_signal_attributes).getDrawable(0); // If sld is null then we are indexing and therefore do not have access to // (nor need to display) the drawable. if (sld != null) { sld.setState((security != SECURITY_NONE) ? STATE_SECURED : STATE_NONE); drawable = sld.getCurrent(); setIcon(drawable); } } if (drawable != null) { drawable.setLevel(level); Loading