Fix missing title for WiFi Advanced settings.
Bug: 3360783 Change-Id: I8c22ce5a995eab26d300402471770c082f90a34a
This commit is contained in:
@@ -265,7 +265,15 @@ public class WifiSettings extends SettingsPreferenceFragment
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case MENU_ID_ADVANCED:
|
case MENU_ID_ADVANCED:
|
||||||
startFragment(this, AdvancedSettings.class.getCanonicalName(), -1, null);
|
if (getActivity() instanceof PreferenceActivity) {
|
||||||
|
((PreferenceActivity) getActivity()).startPreferencePanel(
|
||||||
|
AdvancedSettings.class.getCanonicalName(),
|
||||||
|
null,
|
||||||
|
R.string.wifi_advanced_titlebar, null,
|
||||||
|
this, 0);
|
||||||
|
} else {
|
||||||
|
startFragment(this, AdvancedSettings.class.getCanonicalName(), -1, null);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
|
Reference in New Issue
Block a user