OSDN Git Service

Add a config resource to disable key-chord screenshotting
authorChristopher Tate <ctate@google.com>
Tue, 6 Mar 2012 02:56:25 +0000 (18:56 -0800)
committerMike Lockwood <lockwood@google.com>
Thu, 22 Mar 2012 22:09:25 +0000 (15:09 -0700)
commite90585f89d550a61e3efd5050efdc5be2be494af
treeacf9974723e845e9c00514b89b945543a3c547f9
parentd87a9be444874d62fcfa70a9d48b7dc4f5f5948e
Add a config resource to disable key-chord screenshotting

The key chord screenshot mechanism introduces significant latency into
processing of volume-key input; enough to be quite noticeable and
annoying on some kinds of device.  This patch introduces a new config
resource entry ("config_enableScreenshotChord"), true by default, so
that products on which this functionality is inapplicable can avoid
its runtime overhead.

Bug 6039047

Change-Id: I968ddf9046741da35988310b7893fae2c0369beb
core/res/res/values/config.xml
core/res/res/values/public.xml
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java