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

Commit bcc8fc42 authored by Danae Savvidi's avatar Danae Savvidi
Browse files

Add @Nullable annotation to getHdrCapabilities

android.view.Display.getHdrCapabilities() currently doesn't have any nullability annotation which could cause apps not handling the null case well. This adds a @Nullable annotation.

FCRS_CODE : mdzreyxwfaamhy

Bug: 342495033
Flag: NONE not related to a flag
Test: atest DisplayManagerServiceTest
Change-Id: I129013c443afcd83ecd108191de74712420bbcd9
parent 8b4a53e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52606,7 +52606,7 @@ package android.view {
    method @Nullable public android.hardware.display.DeviceProductInfo getDeviceProductInfo();
    method public int getDisplayId();
    method public int getFlags();
    method public android.view.Display.HdrCapabilities getHdrCapabilities();
    method @Nullable public android.view.Display.HdrCapabilities getHdrCapabilities();
    method public float getHdrSdrRatio();
    method @Deprecated public int getHeight();
    method @FlaggedApi("com.android.server.display.feature.flags.highest_hdr_sdr_ratio_api") public float getHighestHdrSdrRatio();
+1 −0
Original line number Diff line number Diff line
@@ -1489,6 +1489,7 @@ public final class Display {
     *
     * @see #isHdr()
     */
    @Nullable
    public HdrCapabilities getHdrCapabilities() {
        synchronized (mLock) {
            updateDisplayInfoLocked();