From 3d1fd57e3063d9501266dc46e13df63eb4ba685a Mon Sep 17 00:00:00 2001 From: Jake Hamby Date: Thu, 27 Jan 2011 18:15:51 -0800 Subject: [PATCH] Increase size of BT profile icons and decrease alpha for inactive profiles Increase the size of the Bluetooth profile icons from 20dp to 30dp. Decrease the alpha for disabled profile icons to 50% of theme default. Bug: 3400851 Change-Id: Ieb5ecb01ccbd7185d383828e0d9c9f78525ee0c4 --- res/layout/profile_icon_small.xml | 4 ++-- src/com/android/settings/bluetooth/BluetoothDevicePreference.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/layout/profile_icon_small.xml b/res/layout/profile_icon_small.xml index b0a9f4bdd2..3a113e03cc 100644 --- a/res/layout/profile_icon_small.xml +++ b/res/layout/profile_icon_small.xml @@ -16,8 +16,8 @@ diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java index fc40bc1df4..6a0b8811c5 100644 --- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java +++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java @@ -60,7 +60,7 @@ public class BluetoothDevicePreference extends Preference implements if (sDimAlpha == Integer.MIN_VALUE) { TypedValue outValue = new TypedValue(); context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, outValue, true); - sDimAlpha = (int) (outValue.getFloat() * 255); + sDimAlpha = (int) ((outValue.getFloat() * 255) * 0.5); } mCachedDevice = cachedDevice; -- 2.11.0