denzilferreira / aware-client

AWARE's Android client. This application allows researchers to easily collect sensor/plugin data locally or remotely to an AWARE server instance.
https://awareframework.com
88 stars 78 forks source link

Cache settings for the high-frequency sensors. #298

Closed mcourteaux closed 1 year ago

mcourteaux commented 3 years ago

Here is the proposed fix. This is completely untested, as I am not an active developer of the app draining my phone battery, just a data collecting participant. I just edited the files in Vim, so please be careful! I think this should be fine but I'm not sure.

By the way, the try-catches around these debug_db_slow blocks are pointless I think, but I didn't remove them as I wanted this PR to be minimal.

I used snake_case for the variables as that seemed the by style in these files.