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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14442739

Change-Id: I6578d1398d465dc42338e56b91e9833bf101e2b8
This commit is contained in:
TreeHugger Robot
2021-05-11 02:23:40 +00:00
committed by Automerger Merge Worker
@@ -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
*/