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

Commit 59d804c6 authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Exposing method to get theme colors am: e3c46365 am: 2441cc9a

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

Change-Id: I25984f041bb09d7a876aa3bf5d698dfc1b5cb9dd
parents 14fbecb4 2441cc9a
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) {