Merge "Defer resizing invisible stacks while drag resizing" into pi-dev am: 5e12ebfffd

am: 03d4aeda37

Change-Id: Ic4e21bcd38e09cd237fcf149ba308bfdbf77240d
This commit is contained in:
Adrian Roos
2018-04-20 08:07:53 -07:00
committed by android-build-merger
10 changed files with 148 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
package android.graphics;
import android.annotation.CheckResult;
import android.annotation.Nullable;
import android.os.Parcel;
import android.os.Parcelable;
@@ -99,6 +100,16 @@ public final class Rect implements Parcelable {
}
}
/**
* Returns a copy of {@code r} if {@code r} is not {@code null}, or {@code null} otherwise.
*
* @hide
*/
@Nullable
public static Rect copyOrNull(@Nullable Rect r) {
return r == null ? null : new Rect(r);
}
@Override
public boolean equals(Object o) {
if (this == o) return true;