Adds video to swipe up gesture

Bug: 77549883
Test: Manual test
Change-Id: I818a5952864cd1a7b62501bb23ed15b4c9fabd27
This commit is contained in:
Mehdi Alizadeh
2018-04-04 17:28:55 -07:00
parent 6be11cc48b
commit a37c5b26a2
4 changed files with 6 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

View File

@@ -21,6 +21,11 @@
android:key="gesture_swipe_up_screen" android:key="gesture_swipe_up_screen"
android:title="@string/swipe_up_to_switch_apps_title"> android:title="@string/swipe_up_to_switch_apps_title">
<com.android.settings.widget.VideoPreference
android:key="gesture_swipe_up_video"
app:animation="@raw/gesture_swipe_up"
app:preview="@drawable/gesture_swipe_up" />
<SwitchPreference <SwitchPreference
android:key="gesture_swipe_up" android:key="gesture_swipe_up"
android:title="@string/swipe_up_to_switch_apps_title" android:title="@string/swipe_up_to_switch_apps_title"

View File

@@ -33,8 +33,7 @@ public class SwipeUpPreferenceController extends GesturePreferenceController {
private final int ON = 1; private final int ON = 1;
private final int OFF = 0; private final int OFF = 0;
// TODO(77474484): Update when swipe up illustration video is ready private static final String PREF_KEY_VIDEO = "gesture_swipe_up_video";
private static final String PREF_KEY_VIDEO = "";
private final UserManager mUserManager; private final UserManager mUserManager;
public SwipeUpPreferenceController(Context context, String key) { public SwipeUpPreferenceController(Context context, String key) {