Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 739fb187 authored by Matthew Xie's avatar Matthew Xie
Browse files

When local device originated connection to hid device, move out of quiet mode

bug 17480992

Change-Id: Ia3f5ef4886dfde370abe5b35a80ab80a4f030f37
parent cc9c0054
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -185,13 +185,13 @@ public class HidService extends ProfileService {
                    } else {
                        broadcastConnectionState(device, convertHalState(halState));
                    }
                    if (halState != CONN_STATE_CONNECTING) {
                    if (halState == CONN_STATE_CONNECTED &&
                        (mTargetDevice != null && mTargetDevice.equals(device))) {
                        mTargetDevice = null;
                    }
                    else {
                        // CONN_STATE_CONNECTING is received only during
                        // local initiated connection.
                        mTargetDevice = device;
                        // local device originated connection to hid device, move out
                        // of quiet mode
                        AdapterService adapterService = AdapterService.getAdapterService();
                        adapterService.enable(false);
                    }
                }
                    break;