fix the bug "android.view.WindowManager$BadTokenException: Unable to add
window -- token android.os.BinderProxy@4177f9d0 is not valid; is your
activity running?"

Signed-off-by: yanghui <yanghui1986527@gmail.com>