From da01c0fc912220cd19574f0b8de9fc1ff23f7c74 Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Mon, 3 Dec 2018 19:12:31 +0800 Subject: [PATCH] Set the color primary variant for material design Added the color of the colorPrimaryVariant to avoid the run time exception while load the MaterialCardView resource. Modified the test case for the new version material design library. Bug: 118886724 Test: robotest Change-Id: I55791b8eef2263587b2ae3d7a2f5b9da9929fc9a --- res/values/themes.xml | 2 ++ tests/robotests/res/values/themes.xml | 2 ++ .../conditional/ConditionContextualCardRendererTest.java | 2 +- .../conditional/ConditionHeaderContextualCardRendererTest.java | 2 +- .../LegacySuggestionContextualCardRendererTest.java | 2 +- .../contextualcards/slices/SliceContextualCardRendererTest.java | 2 +- 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/res/values/themes.xml b/res/values/themes.xml index be57bd3eba1..a787443b0f6 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -185,6 +185,8 @@ @color/battery_good_color_light @color/battery_maybe_color_light @color/battery_bad_color_light + + @android:color/white