So… I made a sensor test application, and I added a FAB (Floating Action Button) to be able to turn off and re-enable the sensor, the goal is to avoid lag when a new application is launched on an old device, now if the FAB is pressed for a long time it will be able to deactivate a certain sensor, if all checkboxes are checked then the sensor will turn off, but if one is selected then the selected sensor will turn off, but when I try to make it, it doesn’t work if I only select a few sensors, if I select all of them it works, can anyone help?
Blocks :
Video :
ScreenRecord_01011970_000000