Replace post with run on ui thread as applicable.