Fix the truncating of Bluetooth icons.

Bug: 17347150
Change-Id: Iad6bec51bf9327ee0c6752ddaa161aec3b4ff590
This commit is contained in:
PauloftheWest
2014-09-04 08:27:32 -07:00
parent ebe496ea7b
commit a7aef13fbb
2 changed files with 77 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ public final class BluetoothDevicePreference extends Preference implements
mCachedDevice = cachedDevice;
setLayoutResource(R.layout.preference_bt_icon);
if (cachedDevice.getBondState() == BluetoothDevice.BOND_BONDED) {
UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE);
if (! um.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) {