Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2441cc9a authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Exposing method to get theme colors am: e3c46365

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/libs/systemui/+/14605281

Change-Id: Idee96306e4a6c358965954a19c48d879e1501855
parents 75056b8d e3c46365
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -255,7 +255,10 @@ public class ThemedIconDrawable extends FastBitmapDrawable {
        }
    }

    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) {