fix black screen when onResume is called on Kindle