快速显示4G设置里面
- packages/services/Telephony/src/com/android/phone/MobileNetworkSettings.java -
index a06543d..3a18008 100644
@@ -284,9 +284,10 @@ public class MobileNetworkSettings extends PreferenceActivity implements
}else{
setNvramValue4G(0);
}
- Intent intent = new Intent(TelephonyIntents.ACTION_SUBINFO_CONTENT_CHANGE);
- intent.putExtra("type", 1);
- this.sendBroadcast(intent);
+ Intent intent = new Intent(TelephonyIntents.SPN_STRINGS_UPDATED_ACTION);
+ intent.putExtra("type", 1);
+ intent.putExtra("subscription", 1);
+ this.sendBroadcast(intent);
mButtonEnabledNetworks.setValue(Integer.toString(settingsNetworkMode));
return true;
} else if (preference == mButtonDataRoam) {
Android快速显示4G
最新推荐文章于 2024-04-29 17:30:19 发布
本文介绍了一段关于4G设置更新的代码片段,详细解析了如何通过发送广播来更新4G设置,并展示了如何使用Intent及Extra参数实现特定类型设置更新的动作。
1127

被折叠的 条评论
为什么被折叠?



