fix ##9689
fix #9689
Merge pull request #9699 from super626/fixandroid

fix background/foreground switch