Extracted ActivityUtils.showDialogOnUiThread to static DialogUtils.showDialogOnUiThread.