resume

fun resume(ownerView: View)

An owner View can only be added to the WindowManager after the activity has finished resuming. Therefore, we must use post to ensure that the window is only added after resume is finished.