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
This commit is contained in:
Santos Cordon
2022-03-31 18:32:14 +00:00
parent 0effa34013
commit b20c5a1d49
2 changed files with 1 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;
/**