Adds video to swipe up gesture

am: a37c5b26a2

Change-Id: I603ab692396126db4993c2e72969da26a122ad32
This commit is contained in:
Mehdi Alizadeh
2018-04-11 16:10:06 -07:00
committed by android-build-merger
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: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
android:key="gesture_swipe_up"
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 OFF = 0;
// TODO(77474484): Update when swipe up illustration video is ready
private static final String PREF_KEY_VIDEO = "";
private static final String PREF_KEY_VIDEO = "gesture_swipe_up_video";
private final UserManager mUserManager;
public SwipeUpPreferenceController(Context context, String key) {