fix black screen when back to foreground  on android.
Merge pull request #4693 from Dhilan007/black_screen_android

fix black screen when back to foreground  on android.