Skip to content

Commit

Permalink
base: Add support for GMS and wellbeing overlays
Browse files Browse the repository at this point in the history
Required for icons for now, who knows if for something else in the future

Change-Id: I24a44f7939e10db3463eb20d5f3fb72f1e3cd463
  • Loading branch information
eldainosor authored and stevn4127 committed Jul 27, 2020
1 parent 1ff66c7 commit 55daf12
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class ThemeOverlayManager {
static final String SETTINGS_PACKAGE = "com.android.settings";
@VisibleForTesting
static final String SYSUI_PACKAGE = "com.android.systemui";
@VisibleForTesting
static final String GMS_PACKAGE = "com.android.systemui";
@VisibleForTesting
static final String WELLBEING_PACKAGE = "com.android.systemui";

@VisibleForTesting
static final String OVERLAY_CATEGORY_COLOR = "android.theme.customization.accent_color";
Expand All @@ -54,6 +58,12 @@ class ThemeOverlayManager {
@VisibleForTesting
static final String OVERLAY_CATEGORY_STYLE_SYSUI = "android.theme.customization.style.systemui";
@VisibleForTesting
static final String OVERLAY_CATEGORY_STYLE_GMS =
"android.theme.customization.style.gms";
@VisibleForTesting
static final String OVERLAY_CATEGORY_STYLE_WELLBEING =
"android.theme.customization.style.wellbeing";
@VisibleForTesting
static final String OVERLAY_CATEGORY_FONT = "android.theme.customization.font";
@VisibleForTesting
static final String OVERLAY_CATEGORY_SHAPE =
Expand Down Expand Up @@ -86,6 +96,8 @@ class ThemeOverlayManager {
OVERLAY_CATEGORY_STYLE_ANDROID,
OVERLAY_CATEGORY_STYLE_SETTINGS,
OVERLAY_CATEGORY_STYLE_SYSUI,
OVERLAY_CATEGORY_STYLE_GMS,
OVERLAY_CATEGORY_STYLE_WELLBEING,
OVERLAY_CATEGORY_ICON_ANDROID,
OVERLAY_CATEGORY_ICON_SYSUI,
OVERLAY_CATEGORY_ICON_SETTINGS,
Expand Down Expand Up @@ -137,6 +149,8 @@ class ThemeOverlayManager {
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_STYLE_ANDROID, ANDROID_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_STYLE_SYSUI, SYSUI_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_STYLE_SETTINGS, SETTINGS_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_STYLE_GMS, GMS_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_STYLE_WELLBEING, WELLBEING_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_ICON_ANDROID, ANDROID_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_ICON_SYSUI, SYSUI_PACKAGE);
mCategoryToTargetPackage.put(OVERLAY_CATEGORY_ICON_SETTINGS, SETTINGS_PACKAGE);
Expand Down

0 comments on commit 55daf12

Please sign in to comment.