Internal cleanup CL
This CL fixed a build warning:
nothing matches overlay file view_pager_tab_background.xml, for flavor v21
And it doesn't affect the look of Dialer and Contacts on LMP+.
Bug 27929147
Bug 25629359
Change-Id: I3a71957539b52339921a02c7421244f59018e5f9
diff --git a/res-common/drawable-v21/view_pager_tab_background.xml b/res-common/drawable-v21/view_pager_tab_background.xml
new file mode 100644
index 0000000..b9e0805
--- /dev/null
+++ b/res-common/drawable-v21/view_pager_tab_background.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2016 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
+ -->
+<ripple xmlns:android="http://schemas.android.com/apk/res/android"
+ android:color="@color/tab_ripple_color">
+ <item android:id="@android:id/mask">
+ <color android:color="@android:color/white" />
+ </item>
+</ripple>
diff --git a/res-common/drawable/view_pager_tab_background.xml b/res-common/drawable/view_pager_tab_background.xml
index 1ba6c57..9f59845 100644
--- a/res-common/drawable/view_pager_tab_background.xml
+++ b/res-common/drawable/view_pager_tab_background.xml
@@ -14,9 +14,8 @@
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
-<ripple xmlns:android="http://schemas.android.com/apk/res/android"
- android:color="@color/tab_ripple_color">
- <item android:id="@android:id/mask">
- <color android:color="@android:color/white" />
- </item>
-</ripple>
\ No newline at end of file
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:state_pressed="true"
+ android:drawable="@color/tab_ripple_color"/>
+</selector>
\ No newline at end of file