Messaging: Remove GServices
We don't have an actual implementation returning anything but the defaults, so apply the defaults directly anywhere we need them Change-Id: Ic651b4b13977799f2f4d2c702c430798fbff77f8
This commit is contained in:
@@ -138,23 +138,6 @@ public class PerSubscriptionSettingsActivity extends BugleActionBarActivity {
|
||||
advancedCategory.removePreference(deliveryReportsPref);
|
||||
}
|
||||
|
||||
// Access Point Names (APNs)
|
||||
final PreferenceScreen apnsScreen =
|
||||
(PreferenceScreen) findPreference(getString(R.string.sms_apns_key));
|
||||
|
||||
if (!MmsManager.shouldUseLegacyMms()
|
||||
|| (MmsUtils.useSystemApnTable() && !ApnDatabase.doesDatabaseExist())) {
|
||||
// 1) Remove the ability to edit the local APN prefs if it doesn't use legacy APIs.
|
||||
// 2) Don't remove the ability to edit the local APN prefs if this device lets us
|
||||
// access the system APN, but we can't find the MCC/MNC in the APN table and we
|
||||
// created the local APN table in case the MCC/MNC was in there. In other words,
|
||||
// if the local APN table exists, let the user edit it.
|
||||
advancedCategory.removePreference((Preference) apnsScreen);
|
||||
} else {
|
||||
apnsScreen.setIntent(UIIntents.get()
|
||||
.getApnSettingsIntent(getPreferenceScreen().getContext(), mSubId));
|
||||
}
|
||||
|
||||
// We want to disable preferences if we are not the default app, but we do all of the
|
||||
// above first so that the user sees the correct information on the screen
|
||||
if (!PhoneUtils.getDefault().isDefaultSmsApp()) {
|
||||
|
||||
Reference in New Issue
Block a user