SystemUI修改蓝牙状态以及图标,用系统蓝牙图标

mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
private final void updateBluetooth() {

int iconId = android.R.drawable.stat_sys_data_bluetooth;
String contentDescription =
mContext.getString(R.string.accessibility_quick_settings_bluetooth_on);
boolean bluetoothVisible = false;
if (mBluetooth != null) {
bluetoothVisible = mBluetooth.isBluetoothEnabled();
if (mBluetooth.isBluetoothConnected()) {
iconId = R.drawable.stat_sys_data_bluetooth_connected;
contentDescription = mContext.getString(R.string.accessibility_bluetooth_connected);
// bluetoothVisible = mBluetooth.isBluetoothEnabled();
}
}



上一篇:android-从fetchUuidsWithSdp奇怪的UUID逆转


下一篇:Android Bluetooth蓝牙名称修改