Merge "Fix the truncating of Bluetooth icons." into lmp-dev

This commit is contained in:
PauloftheWest
2014-09-04 17:34:17 +00:00
committed by Android (Google) Code Review
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)) {