diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 8a36120d3158b..40d36aacf0351 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -1869,9 +1869,9 @@ public final class Bitmap implements Parcelable { public boolean sameAs(Bitmap other) { checkRecycled("Can't call sameAs on a recycled bitmap!"); noteHardwareBitmapSlowCall(); - other.noteHardwareBitmapSlowCall(); if (this == other) return true; if (other == null) return false; + other.noteHardwareBitmapSlowCall(); if (other.isRecycled()) { throw new IllegalArgumentException("Can't compare to a recycled bitmap!"); }