Fix bug #12910775 Settings crash after tap on Access Point Names under Mobile networks
- ApnSettings is now a fragment so introduce a new ApnSettingsActivity - ApsSettingsActivity will use the ApnSettings fragment - move the getListView() call to onActivityCreated(...) as the ListView needs to be created before this call can be done. - add also an alias for the old activity name ".ApsSettings" Change-Id: Id228722d7f34415d4b036282f0845e28546111df
This commit is contained in:
@@ -120,12 +120,18 @@ public class ApnSettings extends SettingsPreferenceFragment implements
|
||||
super.onCreate(icicle);
|
||||
|
||||
addPreferencesFromResource(R.xml.apn_settings);
|
||||
getListView().setItemsCanFocus(true);
|
||||
|
||||
mMobileStateFilter = new IntentFilter(
|
||||
TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onActivityCreated(Bundle savedInstanceState) {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
getListView().setItemsCanFocus(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
Reference in New Issue
Block a user