--- a/packages/apps/Settings/res/xml/wireless_settings.xml
+++ b/packages/apps/Settings/res/xml/wireless_settings.xml
@@ -66,12 +66,12 @@
android:targetClass="com.android.phone.MobileNetworkSettings" />
</com.android.settingslib.RestrictedPreference>
- <com.android.settingslib.RestrictedPreference
+ <!--<com.android.settingslib.RestrictedPreference
android:key="manage_mobile_plan"
android:title="@string/manage_mobile_plan_title"
android:persistent="false"
settings:userRestriction="no_config_mobile_networks"
- settings:useAdminDisabledSummary="true" />
+ settings:useAdminDisabledSummary="true" />-->
<com.android.settingslib.RestrictedPreference
android:key="wimax_settings"
diff --git a/packages/apps/Settings/src/com/android/settings/WirelessSettings.java b/packages/apps/Settings/src/com/android/settings/WirelessSettings.java
index 4fb78e1..9cc432b 100755
--- a/packages/apps/Settings/src/com/android/settings/WirelessSettings.java
+++ b/packages/apps/Settings/src/com/android/settings/WirelessSettings.java
@@ -126,8 +126,8 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde
new Intent(TelephonyIntents.ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS, null),
REQUEST_CODE_EXIT_ECM);
return true;
- } else if (preference == findPreference(KEY_MANAGE_MOBILE_PLAN)) {
- onManageMobilePlanClick();
+ /*} else if (preference == findPreference(KEY_MANAGE_MOBILE_PLAN)) {
+ onManageMobilePlanClick();*/
} else if (preference == m4gNetworkPreference){
handle4gNetworkPreferenceClick();
}
@@ -372,18 +372,18 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde
RestrictedLockUtils.hasBaseUserRestriction(activity,
UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, UserHandle.myUserId())) {
removePreference(KEY_MOBILE_NETWORK_SETTINGS);
- removePreference(KEY_MANAGE_MOBILE_PLAN);
+ //removePreference(KEY_MANAGE_MOBILE_PLAN);
}
// Remove Mobile Network Settings and Manage Mobile Plan
// if config_show_mobile_plan sets false.
final boolean isMobilePlanEnabled = this.getResources().getBoolean(
R.bool.config_show_mobile_plan);
- if (!isMobilePlanEnabled) {
+ /*if (!isMobilePlanEnabled) {
Preference pref = findPreference(KEY_MANAGE_MOBILE_PLAN);
if (pref != null) {
removePreference(KEY_MANAGE_MOBILE_PLAN);
}
- }
+ }*/
// Remove Airplane Mode settings if it's a stationary device such as a TV.
if (mPm.hasSystemFeature(PackageManager.FEATURE_TELEVISION)) {
@@ -527,18 +527,18 @@ public class WirelessSettings extends SettingsPreferenceFragment implements Inde
}
// Remove Mobile Network Settings and Manage Mobile Plan if it's a wifi-only device.
- if (isSecondaryUser || Utils.isWifiOnly(context)) {
+ /*if (isSecondaryUser || Utils.isWifiOnly(context)) {
result.add(KEY_MOBILE_NETWORK_SETTINGS);
result.add(KEY_MANAGE_MOBILE_PLAN);
- }
+ }*/
// Remove Mobile Network Settings and Manage Mobile Plan
// if config_show_mobile_plan sets false.
final boolean isMobilePlanEnabled = context.getResources().getBoolean(
R.bool.config_show_mobile_plan);
- if (!isMobilePlanEnabled) {
+ /*if (!isMobilePlanEnabled) {
result.add(KEY_MANAGE_MOBILE_PLAN);
- }
+ }*/
final PackageManager pm = context.getPackageManager();
RK3399 Android7.1去掉设置中的“无线和网络-手机套餐”选项
最新推荐文章于 2024-06-27 18:25:54 发布