From the docs:
Runs the specified action on the UI thread. If the current thread is the UI thread, then the action is executed immediately. If the current thread is not the UI thread, the action is posted to the event queue of the UI thread.
In my opinion you shouldn't call runOnUiThread()
from the UI Thread
because you already are on the UI Thread