summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSetup Wizard Team <android-setup-team-eng@google.com>2021-06-25 17:25:49 +0800
committerCating Lin <catinglin@google.com>2021-06-29 00:41:40 +0000
commitb69685d83962dc1a0cec92a1637b7794c395e2d0 (patch)
treefa0429fae76936b9bc212aa5ddd323759bc005fc /main
parent649d1e8b9cdfeb2382d96cbc89fa58873cada13b (diff)
downloadsetupdesign-android12-qpr1-d-s1-release.tar.gz
Copied from google3/third_party/java_src/android_libs/setupdesign Test: mm BUG: b/191230767 Included changes: - 381429150 [GlifLoadingLayout] Fix ErrorPron Since API Settings.getF... - 380143326 [GlifLoadingLayout] Fix GlifloadingLayout will not finish... - 379668624 Add system background surface for 1p PiperOrigin-RevId: 381429150 Change-Id: I0a94bae9820a12cbbc692fcbf1dc4e7aabbbaa29
Diffstat (limited to 'main')
-rw-r--r--main/src/com/google/android/setupdesign/util/DynamicColorPalette.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/src/com/google/android/setupdesign/util/DynamicColorPalette.java b/main/src/com/google/android/setupdesign/util/DynamicColorPalette.java
index 2541c66..2db8c75 100644
--- a/main/src/com/google/android/setupdesign/util/DynamicColorPalette.java
+++ b/main/src/com/google/android/setupdesign/util/DynamicColorPalette.java
@@ -41,6 +41,7 @@ public final class DynamicColorPalette {
ColorType.ERROR_WARNING,
ColorType.SUCCESS_DONE,
ColorType.FALLBACK_ACCENT,
+ ColorType.BACKGROUND_SURFACE,
})
public @interface ColorType {
int ACCENT = 0;
@@ -50,6 +51,7 @@ public final class DynamicColorPalette {
int ERROR_WARNING = 4;
int SUCCESS_DONE = 5;
int FALLBACK_ACCENT = 6;
+ int BACKGROUND_SURFACE = 7;
}
@ColorInt
@@ -76,6 +78,9 @@ public final class DynamicColorPalette {
case ColorType.FALLBACK_ACCENT:
colorRes = R.color.sud_system_fallback_accent;
break;
+ case ColorType.BACKGROUND_SURFACE:
+ colorRes = R.color.sud_system_background_surface;
+ break;
// fall out
}