OSDN Git Service

Add "Power button ends call" accessibility setting.
authorDavid Brown <dab@google.com>
Wed, 10 Mar 2010 00:53:23 +0000 (16:53 -0800)
committerDavid Brown <dab@google.com>
Fri, 12 Mar 2010 01:39:11 +0000 (17:39 -0800)
commit6e101d125a9b874ff0337b04c94564ccf95ac7c6
tree2c29482ae64739a8c8c85a29a32cf8d8955838ef
parent40d9f1b8eaf17f1a10e0455a50cf4ba8b4e007b8
Add "Power button ends call" accessibility setting.

This is part 3 of the fix for bug 2364220 "Accessibility improvements for
ending calls".

This change adds a checkbox under "Accessibility settings" to control the
new Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR value, which allows the
user to specify that the Power button should hang up while in-call
(instead of just turning off the screen.)  The checkbox is only shown on
devices that actually have a POWER button.

Yeah, it's a little strange having this under Accessibility (since it's not
that obvious *why* this feature is accessibility-related), but there's no
obvious better place.  See discussion in the bug for more info.

Bug: 2364220

Change-Id: I0fd7cf357972519b390575b9c06a4bbe46ff1c9b
res/xml/accessibility_settings.xml
src/com/android/settings/AccessibilitySettings.java