From 1af7a839393152834a3659514528d8050901a4fe Mon Sep 17 00:00:00 2001 From: Fyodor Kupolov Date: Thu, 20 Aug 2015 10:20:34 -0700 Subject: Fixed key comparison in equals method Bug: 23376695 Change-Id: Ie4bd55a88f5f86fd8de7b087d0a5f1755951e90d --- core/java/android/content/RestrictionEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/RestrictionEntry.java b/core/java/android/content/RestrictionEntry.java index ab049ecbed95..0473475c1a77 100644 --- a/core/java/android/content/RestrictionEntry.java +++ b/core/java/android/content/RestrictionEntry.java @@ -456,7 +456,7 @@ public class RestrictionEntry implements Parcelable { if (o == this) return true; if (!(o instanceof RestrictionEntry)) return false; final RestrictionEntry other = (RestrictionEntry) o; - if (mType != other.mType || mKey.equals(other.mKey)) { + if (mType != other.mType || !mKey.equals(other.mKey)) { return false; } if (mCurrentValues == null && other.mCurrentValues == null -- cgit v1.2.3-59-g8ed1b