Merge "Fix regression in handling of empty dark regions"

This commit is contained in:
Winson Chung
2022-02-15 04:48:24 +00:00
committed by Android (Google) Code Review

View File

@@ -91,6 +91,9 @@ public interface DarkIconDispatcher {
* areas, false otherwise
*/
static boolean isInAreas(ArrayList<Rect> areas, View view) {
if (areas.isEmpty()) {
return true;
}
for (Rect area : areas) {
if (isInArea(area, view)) {
return true;