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

Commit ad372b24 authored by Pierre Barbier de Reuille's avatar Pierre Barbier de Reuille Committed by Automerger Merge Worker
Browse files

Merge "Test color mapping equivalent in O(n)" into sc-dev am: 429e2a8b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14518395

Change-Id: I5f219b354af2cc4bbd228db3d84601c831abcb7a
parents 502f72e1 429e2a8b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -909,7 +909,8 @@ public class AppWidgetHostView extends FrameLayout {
            return false;
            return false;
        }
        }
        for (int i = 0; i < oldColors.size(); i++) {
        for (int i = 0; i < oldColors.size(); i++) {
            if (oldColors.valueAt(i) != newColors.get(oldColors.keyAt(i))) {
            if (oldColors.keyAt(i) != newColors.keyAt(i)
                    || oldColors.valueAt(i) != newColors.valueAt(i)) {
                return false;
                return false;
            }
            }
        }
        }