Use default switch preference view if gesture animations video is not

available.

Check to see if animation video is available. If so, use the customized
view. Otherwise, use the default switch preference layout.

Test: make and run SettingsGoogleTests

Bug: 30701118
Change-Id: I0b25f41f8425b92834b45f706690648fb35a885d
This commit is contained in:
Doris Ling
2016-09-16 16:58:02 -07:00
parent 1c0601b046
commit 08886a0e91
2 changed files with 12 additions and 12 deletions

View File

@@ -51,6 +51,7 @@
</LinearLayout>
<LinearLayout
android:id="@+id/gesture_animation_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/gestures_setting_background_color"
@@ -58,7 +59,6 @@
android:orientation="horizontal">
<com.android.settings.widget.AspectRatioFrameLayout
android:id="@+id/gesture_animation_frame"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"