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

Commit e3c46365 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Exposing method to get theme colors

Bug: 183641907
Test: Manual
Change-Id: If69d28ad5ca7caa105f5fe2f783e668187e893df
parent d324a449
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) {