Move the bluetooth icon logic to settingslib
This cl contains the moving about: 1. Several methods in Bluetooth/Utils.java 2. Bluetooth icon drawables 3. Bluetooth strings 4. Tests Bug: 65488978 Test: RunSettingslibRoboTests Change-Id: I682daa3eeb5022beb90a95763c70d19d32d54915
This commit is contained in:
@@ -122,8 +122,8 @@ public final class BluetoothDevicePreference extends GearPreference implements
|
||||
// Null check is done at the framework
|
||||
setSummary(mCachedDevice.getConnectionSummary());
|
||||
|
||||
final Pair<Drawable, String> pair = Utils.getBtClassDrawableWithDescription(getContext(),
|
||||
mCachedDevice);
|
||||
final Pair<Drawable, String> pair = com.android.settingslib.bluetooth.Utils
|
||||
.getBtClassDrawableWithDescription(getContext(), mCachedDevice);
|
||||
if (pair.first != null) {
|
||||
setIcon(pair.first);
|
||||
contentDescription = pair.second;
|
||||
|
Reference in New Issue
Block a user