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();
}
}



posted @ 2021-01-05 20:01  见解独到之法  阅读(412)  评论(0)    收藏  举报