Fixed a Wi-Fi dialog crash
Bug: 18498974 Change-Id: I00ba9828c4f15cefd143fc1c92e1c81f43e91c95
This commit is contained in:
@@ -307,7 +307,8 @@ public class WifiConfigController implements TextWatcher,
|
||||
}
|
||||
}
|
||||
|
||||
if (mEdit || (mAccessPoint.getState() == null && mAccessPoint.getLevel() != -1)){
|
||||
if ((mEdit) || (mAccessPoint != null
|
||||
&& mAccessPoint.getState() == null && mAccessPoint.getLevel() != -1)){
|
||||
mConfigUi.setCancelButton(res.getString(R.string.wifi_cancel));
|
||||
}else{
|
||||
mConfigUi.setCancelButton(res.getString(R.string.wifi_display_options_done));
|
||||
|
Reference in New Issue
Block a user