Found solution to repeatedly calling a method on a non-UI thread
Preference changing now functional.

TODO:
Look into adding widget support
TEST!