OSDN Git Service

Restore dock home support for car docks.
authorDaniel Sandler <dsandler@android.com>
Wed, 17 Apr 2013 00:19:09 +0000 (20:19 -0400)
committerDaniel Sandler <dsandler@android.com>
Thu, 18 Apr 2013 12:21:49 +0000 (08:21 -0400)
commit6396c7205a7c5b16dae5b2e0ba11079005ad7762
tree052994396a501b0a5cfaabb5613fdb0529b8e909
parent37f58dccecd778f5af1f1f1db492c75ec5fcabd6
Restore dock home support for car docks.

While it's still not generally appropriate for the home key
to do anything other than take you home, a car is a somewhat
different context: because of the user's reduced ability to
interact with the device, it's especially useful to
temporarily replace the launcher with a car-optimized
variant. While it would be ideal for the entire system
(particularly the user's everyday Launcher) to dynamically
reconfigure their UIs upon entering car mode, it's not the
case today, and car home apps are a useful compromise.

Quick test:

$ adb shell am broadcast \
-a android.intent.action.DOCK_EVENT \
--ei android.intent.extra.DOCK_STATE 2

This reverts commit 7c135205f2f4c192299ad0215276e9e481bccaa5.

Bug: 8234767
Change-Id: I17588fff46e7f5e3773d3ad202601a5642943444
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java