+82
−75
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
UHID file descriptor is closed by btif_hh in jni thread on disconnection or open failure while the UHID polling thread is closed by bta_hh in the main thread on disconnection. Closing UHID file descriptor without stopping polling thread can result in high battery drain. This change ensures that UHID fd closure is aligned with closing of the polling thread. Bug: 280170626 Test: Regression Change-Id: I64daa836351f1ab3766947353d7824364eb9530f