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

Commit 2955fa8f authored by Jon Miranda's avatar Jon Miranda
Browse files

Add method to check if popup supports color extraction.

Bug: 187058092
Test: manual
Change-Id: I795cd3bfd04a7ab9b4730a2e7d7618830faae37e
parent e4103403
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ public abstract class ArrowPopup<T extends StatefulActivity<LauncherState>>
                        (int) argb.evaluate((i + 1) * step, primaryColor, secondaryColor);
            }

            if (Utilities.ATLEAST_S) {
            if (supportsColorExtraction()) {
                setupColorExtraction();
            }
        }
@@ -706,6 +706,13 @@ public abstract class ArrowPopup<T extends StatefulActivity<LauncherState>>
        }
    }

    /**
     * Returns whether color extraction is supported.
     */
    public boolean supportsColorExtraction() {
        return Utilities.ATLEAST_S;
    }

    /**
     * Callback to be called when the popup is closed
     */