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();
}
}
标签:mContext,getString,mBluetooth,蓝牙,bluetoothVisible,bluetooth,isBluetoothEnabled,S 来源: https://www.cnblogs.com/yangsunny/p/14237683.html