Fix threading and stopping issues in Colors dream.

The colors dream could continue running indefinitely
if the system terminated it rather an it ending
voluntarily.

There were also problems with the GL finish actions being
performed on the wrong thread.

Refactored the dream to resolve both of these problems cleanly.

Bug: 7267653
Change-Id: Id58c473acebdc2eb3be342d792926c54185984a2
2 files changed
tree: a21301b6c3395066931fab565b74ba9c26b2841d
  1. art/
  2. res/
  3. src/
  4. Android.mk
  5. AndroidManifest.xml