Merge "Fixed a bug were AdvanceWifiSettings would crash on resume." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6a2b1a44d2
@@ -135,7 +135,9 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment
|
||||
wifiAssistant.setOnPreferenceChangeListener(this);
|
||||
wifiAssistant.setChecked(checked);
|
||||
} else {
|
||||
getPreferenceScreen().removePreference(wifiAssistant);
|
||||
if (wifiAssistant != null) {
|
||||
getPreferenceScreen().removePreference(wifiAssistant);
|
||||
}
|
||||
}
|
||||
|
||||
Intent wifiDirectIntent = new Intent(context,
|
||||
|
Reference in New Issue
Block a user