Handle EXTRA_DOCK_STATE_LE_DESK and HE_DESK.

Bug: 5569662

Change-Id: Ib2a96a27239228123ed53bd0c03ca412bb4357ba
This commit is contained in:
Jeff Brown
2011-11-08 14:21:53 -08:00
parent 2eb32b0077
commit b8dd637887
3 changed files with 12 additions and 0 deletions

View File

@@ -438,6 +438,8 @@ public final class DockService extends Service implements ServiceListener {
msgType = MSG_TYPE_UNDOCKED_TEMPORARY;
break;
case Intent.EXTRA_DOCK_STATE_DESK:
case Intent.EXTRA_DOCK_STATE_LE_DESK:
case Intent.EXTRA_DOCK_STATE_HE_DESK:
case Intent.EXTRA_DOCK_STATE_CAR:
if (DockEventReceiver.ACTION_DOCK_SHOW_UI.equals(intent.getAction())) {
msgType = MSG_TYPE_SHOW_UI;
@@ -463,6 +465,8 @@ public final class DockService extends Service implements ServiceListener {
switch (state) {
case Intent.EXTRA_DOCK_STATE_CAR:
case Intent.EXTRA_DOCK_STATE_DESK:
case Intent.EXTRA_DOCK_STATE_LE_DESK:
case Intent.EXTRA_DOCK_STATE_HE_DESK:
break;
default:
return;
@@ -578,6 +582,8 @@ public final class DockService extends Service implements ServiceListener {
int numOfProfiles;
switch (state) {
case Intent.EXTRA_DOCK_STATE_DESK:
case Intent.EXTRA_DOCK_STATE_LE_DESK:
case Intent.EXTRA_DOCK_STATE_HE_DESK:
numOfProfiles = 1;
break;
case Intent.EXTRA_DOCK_STATE_CAR:
@@ -609,6 +615,8 @@ public final class DockService extends Service implements ServiceListener {
break;
case Intent.EXTRA_DOCK_STATE_DESK:
case Intent.EXTRA_DOCK_STATE_LE_DESK:
case Intent.EXTRA_DOCK_STATE_HE_DESK:
items[0] = getString(R.string.bluetooth_dock_settings_a2dp);
mProfiles[0] = mProfileManager.getA2dpProfile();
if (firstTime) {