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

Commit b20c5a1d authored by Santos Cordon's avatar Santos Cordon
Browse files

Undeprecate LayoutParams.preferredRefreshRate

This was previously deprecated in favor of preferredDisplayModeId.
However, display modes include specific resolutions
so we would still need an API for the valid use-case
of specifying only a preferred refresh rate.

Bug: 227627158
Bug: 224915081
Test: built locally
Change-Id: Ic7c711d03d3ccc7a5193b26ca38159f048777927
parent 0effa340
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51602,7 +51602,7 @@ package android.view {
    field public String packageName;
    field public boolean preferMinimalPostProcessing;
    field public int preferredDisplayModeId;
    field @Deprecated public float preferredRefreshRate;
    field public float preferredRefreshRate;
    field public int rotationAnimation;
    field public float screenBrightness;
    field public int screenOrientation;
+0 −2
Original line number Diff line number Diff line
@@ -3107,9 +3107,7 @@ public interface WindowManager extends ViewManager {
         * This value is ignored if {@link #preferredDisplayModeId} is set.
         *
         * @see Display#getSupportedRefreshRates()
         * @deprecated use {@link #preferredDisplayModeId} instead
         */
        @Deprecated
        public float preferredRefreshRate;

        /**