diff options
| author | 2015-06-02 01:38:03 -0700 | |
|---|---|---|
| committer | 2015-06-02 01:58:58 -0700 | |
| commit | 60598075a0d54dcb4287d77c91b946e6c407a669 (patch) | |
| tree | dcaf8409ac36f4f5f1ae118ab19221eae49db1fb | |
| parent | 1f8b844870eb9acb334b541b0b41de37e000d2f0 (diff) | |
Bluetooth PAN: Set isPreferred to true (1/2)
isPreferred must always be true for PAN so that the DUT can initiate
a PANU connection with the remote device not only from the internet
access menu in the profile setting, but also from the paired device
list menu.
Currently isPreferred is only true when PAN is in connected state
for the PANU role, so it will return false when the PAN profile is
not connected and the PANU connection will never be initiated
from the paired device list menu.
Change-Id: I120e681a113f56b74b45e01870adf96cdc2ca262
| -rwxr-xr-x | packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java index 3af89e6d2503..7bda2314f4c4 100755 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/PanProfile.java @@ -32,7 +32,7 @@ import java.util.List; /** * PanProfile handles Bluetooth PAN profile (NAP and PANU). */ -final class PanProfile implements LocalBluetoothProfile { +public final class PanProfile implements LocalBluetoothProfile { private static final String TAG = "PanProfile"; private static boolean V = true; @@ -106,8 +106,7 @@ final class PanProfile implements LocalBluetoothProfile { } public boolean isPreferred(BluetoothDevice device) { - // return current connection status so profile checkbox is set correctly - return getConnectionStatus(device) == BluetoothProfile.STATE_CONNECTED; + return true; } public int getPreferred(BluetoothDevice device) { |