Merge "Fix potential crash in ImageTransformState" am: 4ab85d92e9 am: d62eeb3ee7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2375267 Change-Id: I2255901ce402746163a971a3bae3f091892bf6ea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -53,7 +53,9 @@ public class ImageTransformState extends TransformState {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (otherState instanceof ImageTransformState) {
|
if (otherState instanceof ImageTransformState) {
|
||||||
return mIcon != null && mIcon.sameAs(((ImageTransformState) otherState).getIcon());
|
final Icon otherIcon = ((ImageTransformState) otherState).mIcon;
|
||||||
|
return mIcon == otherIcon || (mIcon != null && otherIcon != null && mIcon.sameAs(
|
||||||
|
otherIcon));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user