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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user