Loading graphics/java/android/graphics/Bitmap.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -1558,7 +1558,10 @@ public final class Bitmap implements Parcelable { * If other is null, return false. * If other is null, return false. */ */ public boolean sameAs(Bitmap other) { public boolean sameAs(Bitmap other) { checkRecycled("Can't sameAs on a recycled bitmap!"); checkRecycled("Can't call sameAs on a recycled bitmap!"); if (other.isRecycled()) { throw new IllegalArgumentException("Can't compare to a recycled bitmap!"); } return this == other || (other != null return this == other || (other != null && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap)); && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap)); } } Loading Loading
graphics/java/android/graphics/Bitmap.java +4 −1 Original line number Original line Diff line number Diff line Loading @@ -1558,7 +1558,10 @@ public final class Bitmap implements Parcelable { * If other is null, return false. * If other is null, return false. */ */ public boolean sameAs(Bitmap other) { public boolean sameAs(Bitmap other) { checkRecycled("Can't sameAs on a recycled bitmap!"); checkRecycled("Can't call sameAs on a recycled bitmap!"); if (other.isRecycled()) { throw new IllegalArgumentException("Can't compare to a recycled bitmap!"); } return this == other || (other != null return this == other || (other != null && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap)); && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap)); } } Loading