Add settings for the assist gesture.
Availability of the gesture is gated by a new FeatureProvider.
Test: make -j RunSettingsRoboTests; manual test on
supported/unsupported configurations.
Change-Id: I3529367a73e33370d5112b91d5144293ffa7fa22
This commit is contained in:
32
res/xml/assist_gesture_settings.xml
Normal file
32
res/xml/assist_gesture_settings.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2017 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:app="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/assist_gesture_title">
|
||||
|
||||
<com.android.settings.widget.VideoPreference
|
||||
android:key="gesture_assist_video"
|
||||
app:animation="@raw/gesture_assist"
|
||||
app:preview="@drawable/gesture_assist" />
|
||||
|
||||
<SwitchPreference
|
||||
android:key="gesture_assist"
|
||||
android:title="@string/assist_gesture_title"
|
||||
android:summary="@string/assist_gesture_summary" />
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -19,6 +19,13 @@
|
||||
android:title="@string/gesture_preference_title"
|
||||
settings:keywords="@string/keywords_gesture">
|
||||
|
||||
<com.android.settings.gestures.GesturePreference
|
||||
android:key="gesture_assist"
|
||||
android:title="@string/assist_gesture_title"
|
||||
android:summary="@string/assist_gesture_summary"
|
||||
settings:animation="@raw/gesture_assist"
|
||||
settings:preview="@drawable/gesture_assist"/>
|
||||
|
||||
<com.android.settings.gestures.GesturePreference
|
||||
android:key="gesture_swipe_down_fingerprint"
|
||||
android:title="@string/fingerprint_swipe_for_notifications_title"
|
||||
@@ -54,4 +61,4 @@
|
||||
settings:animation="@raw/gesture_ambient_lift"
|
||||
settings:preview="@drawable/gesture_ambient_lift"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
</PreferenceScreen>
|
||||
|
||||
@@ -52,6 +52,11 @@
|
||||
android:key="gesture_settings_category"
|
||||
android:title="@string/gesture_preference_title">
|
||||
|
||||
<Preference
|
||||
android:key="gesture_assist"
|
||||
android:title="@string/assist_gesture_title"
|
||||
android:fragment="com.android.settings.gestures.AssistGestureSettings"/>
|
||||
|
||||
<Preference
|
||||
android:key="gesture_swipe_down_fingerprint"
|
||||
android:title="@string/fingerprint_swipe_for_notifications_title"
|
||||
@@ -114,4 +119,4 @@
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
</PreferenceScreen>
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
android:title="@string/default_assist_title"
|
||||
android:summary="@string/default_assist_none"/>
|
||||
|
||||
<Preference
|
||||
android:key="gesture_assist"
|
||||
android:title="@string/assist_gesture_title"
|
||||
android:fragment="com.android.settings.gestures.AssistGestureSettings"/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="context"
|
||||
android:title="@string/assist_access_context_title"
|
||||
|
||||
Reference in New Issue
Block a user