diff options
| -rw-r--r-- | core/api/current.txt | 2 | ||||
| -rw-r--r-- | core/java/android/view/SurfaceControl.java | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 205be59c0f95..f68b892e4297 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -51266,7 +51266,7 @@ package android.view { method public void onTransactionCommitted(); } - public static class SurfaceControl.TrustedPresentationThresholds { + public static final class SurfaceControl.TrustedPresentationThresholds { ctor public SurfaceControl.TrustedPresentationThresholds(@FloatRange(from=0.0f, fromInclusive=false, to=1.0f) float, @FloatRange(from=0.0f, fromInclusive=false, to=1.0f) float, @IntRange(from=1) int); } diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index 54e1a53ed7c9..ca8642e1f8e7 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -2411,10 +2411,10 @@ public final class SurfaceControl implements Parcelable { * {@link Transaction#setTrustedPresentationCallback(SurfaceControl, * TrustedPresentationThresholds, Executor, Consumer)} */ - public static class TrustedPresentationThresholds { - private float mMinAlpha; - private float mMinFractionRendered; - private int mStabilityRequirementMs; + public static final class TrustedPresentationThresholds { + private final float mMinAlpha; + private final float mMinFractionRendered; + private final int mStabilityRequirementMs; /** * Creates a TrustedPresentationThresholds that's used when calling |