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
38 lines
1.6 KiB
XML
38 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2009 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<CheckBoxPreference
|
|
android:key="toggle_accessibility_service_checkbox"
|
|
android:title="@string/toggle_accessibility_title"
|
|
android:persistent="false"/>
|
|
|
|
<PreferenceCategory android:key="accessibility_services_category"
|
|
android:title="@string/accessibility_services_category" />
|
|
|
|
<PreferenceCategory android:key="power_button_category"
|
|
android:title="@string/accessibility_power_button_category">
|
|
<CheckBoxPreference
|
|
android:key="power_button_ends_call"
|
|
android:title="@string/accessibility_power_button_ends_call"
|
|
android:summary="@string/accessibility_power_button_ends_call_summary"
|
|
android:persistent="false" />
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|