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

Commit f2247f19 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add method to check if popup supports color extraction." into sc-dev

parents cd7406d9 2955fa8f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ public abstract class ArrowPopup<T extends StatefulActivity<LauncherState>>
                        (int) argb.evaluate((i + 1) * step, primaryColor, secondaryColor);
            }

            if (Utilities.ATLEAST_S) {
            if (supportsColorExtraction()) {
                setupColorExtraction();
            }
        }
@@ -675,6 +675,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
     */