Fix Colors crashing on rotation

This CL makes the Colors dream service create a new SurfaceView and
render thread on every onAttachedToWindow.

onAttachedToWindow is called every time on a screen rotation.

Bug: 160375160
Test: verify Colors is rendered properly and doesn't crash on rotation
Change-Id: I5e76ff5c723b840503bbee113a1c6b3dff0e25dc
1 file changed
tree: 2357a0901a10a4258ebb9e1bd017995e1d61eabb
  1. art/
  2. res/
  3. src/
  4. Android.bp
  5. AndroidManifest.xml