OSDN Git Service

Do not launch Somnambulator as a dock app.
authorJeff Brown <jeffbrown@google.com>
Thu, 11 Oct 2012 22:58:37 +0000 (15:58 -0700)
committerJeff Brown <jeffbrown@google.com>
Thu, 11 Oct 2012 23:29:41 +0000 (16:29 -0700)
commit11159e9a785a143c9f3765bdf5a5ccfd77842d7a
tree4a114325a3b6d4ce0e7ab7753d02e9c62e6492b9
parent487bb6e20b96aa6920e08669a260118a40e604d5
Do not launch Somnambulator as a dock app.

Fixes a black flash that occurred when the device was docked
because the UiModeManagerService was launching the Somnambulator
to start the dream when docked.  This caused an unnecessary
activity transition and could in fact make dreaming less
reliable than if the UiModeManagerService started the dream itself.

Moved common code from UiModeManagerService and Somnambulator
to Sandman to ensure it is kept in sync.

Bug: 7328545
Change-Id: I46102784e2ab1acc0241d43a48abf0581278af24
core/java/android/service/dreams/Sandman.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/Somnambulator.java
services/java/com/android/server/UiModeManagerService.java