OSDN Git Service

Dismiss the desk clock if it was launched by docking.
authorDaniel Sandler <dsandler@google.com>
Fri, 11 Dec 2009 07:07:36 +0000 (02:07 -0500)
committerDaniel Sandler <dsandler@google.com>
Fri, 11 Dec 2009 07:07:36 +0000 (02:07 -0500)
commit3d4de660d654fee760cf96f609198489e4d6525d
tree637282cea2acd2999da561358d175d5d0d5c5ff8
parentcda260fb9e42d1a470ec0040bd325a97261c88dd
Dismiss the desk clock if it was launched by docking.

In other words: if the clock is behaving like a dock app
(launched by a dock event), it should finish() when the
device is removed from the dock.  If, on the other hand,
it's behaving like a regular app (launched from the
Launcher), it should ignore an un-dock event.

This change also removes support for entering the desk dock
via a dialer code (an unnecessary feature since the app can
always be invoked from the Launcher).

Fixes http://b/2302215, approved by hiroshi.
AndroidManifest.xml
src/com/android/deskclock/DeskClock.java
src/com/android/deskclock/DockEventReceiver.java [deleted file]