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

Commit 1d4e0227 authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am 2092b451: am 966b7bb6: am 1c730df3: When local device originated connection...

am 2092b451: am 966b7bb6: am 1c730df3: When local device originated connection to hid device, move out of quiet mode

* commit '2092b451':
  When local device originated connection to hid device, move out of quiet mode
parents 4a7a96da 2092b451
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;