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

Commit 30e175c8 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Clarify assert" into mnc-dev

parents 0a775ce9 9298c541
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1558,7 +1558,10 @@ public final class Bitmap implements Parcelable {
     *  If other is null, return false.
     */
    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
                && nativeSameAs(mFinalizer.mNativeBitmap, other.mFinalizer.mNativeBitmap));
    }