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

Skip to content
Commit 94ae1317 authored by xiamengsen's avatar xiamengsen Committed by Arthur Ishiguro
Browse files

Fix sensor activate after SensorEventConnection removed



When app idle and register a sensor on existing connection,the method
sensor.batch() retrun NO_ERROR but sensor.activate() return INVALID_OPERATION.
The sensor will remove from the connecion but unable to remove from the
batchParams,this make the sensor active after the app killed.
As the client is disabled, keep the sensor in the connection for resume.

Bug: 180825144
Test: Debug app in 180825144

Signed-off-by: default avatarxiamengsen <xiamengsen@xiaomi.com>
Change-Id: Icc22862d1a083abba08fb2cbcabd043444b7090f
parent 73ab3a30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment