diff options
author | Jake Hamby <jhamby@google.com> | 2010-12-16 18:33:28 -0800 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2010-12-22 14:54:33 -0800 |
commit | 39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89 (patch) | |
tree | 248e5203598c7f1006fab072cc47da5327bf66d1 /src/com/android/settings/bluetooth/BluetoothDevicePreference.java | |
parent | 9757e30dfa0ab691c4c15366568367e166071a7d (diff) | |
download | packages_apps_Settings-39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89.zip packages_apps_Settings-39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89.tar.gz packages_apps_Settings-39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89.tar.bz2 |
Enable reverse tethering in BT settings screen.
- Enable support for reverse tethering in BT settings.
- Add string resource for "Auto connect" preference.
- Remove unused imports and other minor cleanups.
- Add isConnectable() and isAutoConnectable() methods to Profile
enum type and remove isConnectableProfile() method.
Change-Id: Ie606db04028a8278e98231f0671a388671f2f067
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothDevicePreference.java')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothDevicePreference.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java index dfaf60d..fc40bc1 100644 --- a/src/com/android/settings/bluetooth/BluetoothDevicePreference.java +++ b/src/com/android/settings/bluetooth/BluetoothDevicePreference.java @@ -42,8 +42,7 @@ public class BluetoothDevicePreference extends Preference implements private static int sDimAlpha = Integer.MIN_VALUE; - private CachedBluetoothDevice mCachedDevice; - private int mAccessibleProfile; + private final CachedBluetoothDevice mCachedDevice; private ImageView mDeviceSettings; @@ -55,8 +54,7 @@ public class BluetoothDevicePreference extends Preference implements */ private boolean mIsBusy; - public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, - int accessibleProfile) { + public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { super(context); if (sDimAlpha == Integer.MIN_VALUE) { @@ -66,7 +64,6 @@ public class BluetoothDevicePreference extends Preference implements } mCachedDevice = cachedDevice; - mAccessibleProfile = accessibleProfile; setWidgetLayoutResource(R.layout.preference_bluetooth); |