By Creating a handler inside of the callQuery method you can remove the Activity Dependency from callQuery considering all you were doing was calling runOnUiThread in onSuccess. This is also better because now this can be called from a ViewModel without much issue.
By Creating a handler inside of the callQuery method you can remove the Activity Dependency from callQuery considering all you were doing was calling runOnUiThread in onSuccess. This is also better because now this can be called from a ViewModel without much issue.