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

Commit 6f59a7ac authored by Michael Wright's avatar Michael Wright
Browse files

Add supported refresh rates for all DisplayDeviceInfos.

Bug: 17674769
Change-Id: I8a003e86a013d7ebe177c8168d3573a8f26f4f6a
parent 5f961157
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -248,6 +248,7 @@ final class OverlayDisplayAdapter extends DisplayAdapter {
                mInfo.width = mWidth;
                mInfo.height = mHeight;
                mInfo.refreshRate = mRefreshRate;
                mInfo.supportedRefreshRates = new float[] { mRefreshRate };
                mInfo.densityDpi = mDensityDpi;
                mInfo.xDpi = mDensityDpi;
                mInfo.yDpi = mDensityDpi;
+1 −0
Original line number Diff line number Diff line
@@ -257,6 +257,7 @@ final class VirtualDisplayAdapter extends DisplayAdapter {
                mInfo.width = mWidth;
                mInfo.height = mHeight;
                mInfo.refreshRate = 60;
                mInfo.supportedRefreshRates = new float[] { 60.0f };
                mInfo.densityDpi = mDensityDpi;
                mInfo.xDpi = mDensityDpi;
                mInfo.yDpi = mDensityDpi;
+1 −0
Original line number Diff line number Diff line
@@ -625,6 +625,7 @@ final class WifiDisplayAdapter extends DisplayAdapter {
                mInfo.width = mWidth;
                mInfo.height = mHeight;
                mInfo.refreshRate = mRefreshRate;
                mInfo.supportedRefreshRates = new float[] { mRefreshRate };
                mInfo.presentationDeadlineNanos = 1000000000L / (int) mRefreshRate; // 1 frame
                mInfo.flags = mFlags;
                mInfo.type = Display.TYPE_WIFI;