About changing system preferences

nhi2 years ago

Hi all !
Sorry if my english is not good enough.
In the TraccarClient app, I want to change the "offline buffering" option at any time (true/false), regardless of whether the system is running or not.
I did this in the TrackingController, adding a piece of code in a function:

preferences.edit().putBoolean("buffer", true).apply()

but the change is not applied. The option buffer is still disabled on the user's display.
What do I need to do for the changes to be applied when I issue commands from the TrackingController. please !!