Fix: skia crash when theme change

Change-Id: I25a36a7d28e5e4ba9d1ca3fda9a23b432d3b9bfc
Remove after_dispatchAttachedToWindow hack

Change-Id: I0eab35566ca9fb825db5b612dd5921c9c145e1df