您的位置:首页 > 理论基础 > 计算机网络

android 建立蓝牙共享网络后,数据连接图标被打开

2014-11-05 17:06 573 查看
修改 NetworkController.java 的 void refreshViews(int slotId)

(File Path: alps/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java)

1. 找到

} else if (!tempDataConnected && !mWifiConnected && !mBluetoothTethered && !mWimaxConnected && !ethernetConnected) {

改成

} else if (!tempDataConnected && !mWifiConnected && !mWimaxConnected && !ethernetConnected) {

2. 第一步的else if 底下的小部分內容用 if (!mBluetoothTethered) 包起來

if (!mBluetoothTethered)

{

combinedLabel = context.getString(R.string.status_bar_settings_signal_meter_disconnected);

// On devices without mobile radios, we want to show the wifi icon

if (!mIsScreenLarge) {

...............

} else {

................

}

}

IccCardConstants.State tempSimState;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐