commit | e3c46365b9708bcc948055bf3ad39b7e0764c978 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon May 17 13:24:01 2021 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Mon May 17 13:24:18 2021 -0700 |
tree | 3d4dd193373350befb36e1edc848053c34fd41d0 | |
parent | d324a44913f102412daf9425c93335229d314b4c [diff] |
Exposing method to get theme colors Bug: 183641907 Test: Manual Change-Id: If69d28ad5ca7caa105f5fe2f783e668187e893df
diff --git a/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java b/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java index efbabc7..7425c68 100644 --- a/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java +++ b/iconloaderlib/src/com/android/launcher3/icons/ThemedIconDrawable.java
@@ -255,7 +255,10 @@ } } - private static int[] getColors(Context context) { + /** + * Get an int array representing background and foreground colors for themed icons + */ + public static int[] getColors(Context context) { Resources res = context.getResources(); int[] colors = new int[2]; if ((res.getConfiguration().uiMode & UI_MODE_NIGHT_MASK) == UI_MODE_NIGHT_YES) {