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.
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.