Add new gesture toggle at: Settings > System > Gesture > Swipe for notification Bug: 154080211 Test: manual check Settings > System > Gesture > Swipe for notifications Test: manual check it is disabled after One-handed mode toggled on Test: make RunSettingsRoboTests ROBOTEST_FILTER=\ "SwipeBottomToNotificationSettingsTest" Test: make RunSettingsRoboTests ROBOTEST_FILTER=\ "SwipeBottomToNotificationPreferenceControllerTest" Change-Id: Iec18dfd323981ae7489d142b79c6035f3499eb91
37 lines
1.6 KiB
XML
37 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2020 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-auto"
|
|
android:title="@string/swipe_bottom_to_notifications_title">
|
|
|
|
<com.android.settings.widget.VideoPreference
|
|
android:title="@string/swipe_bottom_to_notifications_title"
|
|
settings:animation="@raw/gesture_fingerprint_swipe"
|
|
settings:preview="@drawable/gesture_fingerprint_swipe"
|
|
settings:controller="com.android.settings.widget.VideoPreferenceController"/>
|
|
|
|
<SwitchPreference
|
|
android:key="gesture_swipe_bottom_to_notification"
|
|
android:title="@string/swipe_bottom_to_notifications_title"
|
|
android:summary="@string/swipe_bottom_to_notifications_summary"
|
|
settings:controller="com.android.settings.gestures.SwipeBottomToNotificationPreferenceController"
|
|
settings:allowDividerAbove="true" />
|
|
|
|
</PreferenceScreen>
|